:root {
  --bg: #f5f7f9;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --ink: #0f2a3d;
  --muted: #8a949e;
  --line: rgba(15, 42, 61, 0.1);
  --accent: #1fafa3;
  --accent-dark: #168e84;
  --accent-2: #f28c28;
  --danger: #c34b3d;
  --shadow: 0 18px 38px rgba(15, 42, 61, 0.06);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(31, 175, 163, 0.16), transparent 26%),
    radial-gradient(circle at right top, rgba(242, 140, 40, 0.12), transparent 22%),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 100%);
}

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

.page-shell {
  width: calc(100% - 4px);
  max-width: none;
  margin: 2px auto;
  height: calc(100vh - 4px);
  position: relative;
}

.page-shell.app-shell {
  padding-top: 86px;
}

.page-shell.public-shell {
  padding-top: 16px;
}

.global-page-context {
  position: absolute;
  top: 14px;
  left: 334px;
  right: 24px;
  z-index: 44;
  display: grid;
  gap: 2px;
  pointer-events: none;
}

.global-brand-badge {
  position: absolute;
  top: 14px;
  left: 124px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  min-height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 18px 34px rgba(15, 42, 61, 0.08);
  backdrop-filter: blur(12px);
}

.global-brand-badge img {
  display: block;
  width: 172px;
  height: auto;
}

.page-shell.public-shell .global-brand-badge {
  left: 22px;
}

.global-page-context .eyebrow {
  margin: 0;
}

.global-page-context h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero h1,
.panel h2,
.ticket h3 {
  margin: 0;
  line-height: 1;
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.status-pill,
.ticket-badge,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 249, 240, 0.16);
}

.eyebrow {
  color: var(--accent);
  margin: 0 0 8px;
}

.brand-logo {
  display: block;
  width: min(100%, 460px);
  height: auto;
  margin-top: 2px;
}

.brand-logo-hero {
  width: min(100%, 560px);
  margin-top: 6px;
}

.form-intro {
  margin: 16px 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(31, 175, 163, 0.05), rgba(15, 42, 61, 0.025));
  border: 1px solid rgba(31, 175, 163, 0.08);
}

.form-intro h2 {
  margin: 0;
}

.form-intro p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

#login-panel {
  grid-column: span 3;
  padding: 28px;
}

.login-hero-panel {
  grid-column: span 9;
  padding: 0;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(31, 175, 163, 0.16), transparent 26%),
    radial-gradient(circle at right center, rgba(242, 140, 40, 0.12), transparent 20%),
    linear-gradient(135deg, rgba(16, 39, 56, 0.94), rgba(22, 69, 95, 0.92));
  border-color: rgba(255, 255, 255, 0.08);
}

.login-hero-panel::before,
.login-hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.login-hero-panel::before {
  left: -6%;
  bottom: -10%;
  width: 78%;
  height: 42%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  filter: blur(6px);
  animation: loginWave 16s ease-in-out infinite alternate;
}

.login-hero-panel::after {
  right: -10%;
  bottom: -18%;
  width: 68%;
  height: 38%;
  background: radial-gradient(circle at center, rgba(31, 175, 163, 0.18), rgba(31, 175, 163, 0));
  filter: blur(8px);
  animation: loginWave 22s ease-in-out infinite alternate-reverse;
}

.login-hero-card {
  position: relative;
  z-index: 1;
  min-height: 100%;
  height: 100%;
  padding: 56px 68px;
  display: grid;
  align-content: center;
  gap: 18px;
  justify-items: stretch;
}

.login-hero-card .eyebrow,
.login-hero-card h2 {
  color: #ffffff;
}

.login-hero-card h2 {
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: none;
  width: 100%;
}

.login-hero-text {
  margin: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  line-height: 1.72;
  width: 100%;
}

.login-hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.login-hero-points article {
  display: grid;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.login-hero-points strong {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
}

.login-hero-points span {
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.6;
  font-size: 0.92rem;
}

.login-support-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

#login-panel {
  grid-column: span 4;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 252, 0.96)),
    linear-gradient(135deg, rgba(31, 175, 163, 0.05), rgba(242, 140, 40, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 70px rgba(15, 42, 61, 0.08);
}

.login-card-shell {
  height: 100%;
  padding: 30px 32px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 22px;
}

.login-panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-topbar-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 175, 163, 0.08);
  border: 1px solid rgba(31, 175, 163, 0.12);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-brand-stack {
  display: grid;
  gap: 18px;
}

.brand-logo-login {
  width: min(100%, 340px);
  max-width: 100%;
  filter: drop-shadow(0 8px 18px rgba(15, 42, 61, 0.08));
}

.login-brand-meta {
  display: grid;
  gap: 10px;
}

.login-brand-meta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.login-brand-meta p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.6;
}

.login-form-stack {
  align-content: start;
  gap: 10px;
}

.login-form-stack label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 42, 61, 0.72);
}

.login-form-stack input {
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 42, 61, 0.08);
  background: rgba(245, 247, 249, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form-stack input:focus {
  outline: none;
  border-color: rgba(31, 175, 163, 0.38);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 175, 163, 0.1);
}

.login-form-stack button {
  margin-top: 8px;
  min-height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1fafa3, #168e84);
  box-shadow: 0 20px 36px rgba(31, 175, 163, 0.22);
  font-size: 1rem;
  font-weight: 700;
}

.login-form-stack button:hover {
  background: linear-gradient(135deg, #23bdb0, #14877d);
}

.login-support {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 42, 61, 0.08);
}

.login-support-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.login-hero-panel {
  grid-column: span 8;
  padding: 0;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(31, 175, 163, 0.18), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(242, 140, 40, 0.16), transparent 20%),
    linear-gradient(135deg, rgba(12, 33, 47, 0.98), rgba(18, 60, 84, 0.96) 52%, rgba(15, 42, 61, 0.98));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 38px 90px rgba(15, 42, 61, 0.18);
}

.login-hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 92%);
  opacity: 0.34;
  pointer-events: none;
}

.login-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.login-hero-orb-a {
  width: 420px;
  height: 420px;
  left: -90px;
  top: -100px;
  background: radial-gradient(circle, rgba(31, 175, 163, 0.34), rgba(31, 175, 163, 0));
}

.login-hero-orb-b {
  width: 340px;
  height: 340px;
  right: -70px;
  top: 60px;
  background: radial-gradient(circle, rgba(242, 140, 40, 0.24), rgba(242, 140, 40, 0));
  animation-duration: 20s;
}

.login-hero-orb-c {
  width: 280px;
  height: 280px;
  right: 18%;
  bottom: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  animation-duration: 24s;
}

.login-hero-card {
  position: relative;
  z-index: 1;
  min-height: 100%;
  height: 100%;
  padding: 52px 58px;
  display: grid;
}

.login-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr);
  gap: 30px;
  align-items: center;
  min-height: 100%;
}

.login-hero-copy-wrap {
  display: grid;
  align-content: center;
  gap: 18px;
}

.login-hero-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-logo-hero {
  width: min(100%, 640px);
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.14));
}

.login-hero-card .eyebrow,
.login-hero-card h2 {
  color: #ffffff;
}

.login-hero-card h2 {
  font-size: clamp(3.4rem, 6vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: none;
  width: 100%;
}

.login-hero-text {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.12rem;
  line-height: 1.78;
  width: 100%;
}

.login-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-hero-chips span {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.login-hero-stage {
  position: relative;
  min-height: 470px;
}

.hero-surface {
  position: absolute;
  display: grid;
  gap: 12px;
  padding: 22px 22px 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-surface:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 32px 68px rgba(0, 0, 0, 0.22);
}

.hero-surface-main {
  inset: 52px 70px 78px 0;
  animation: floatCard 16s ease-in-out infinite alternate;
}

.hero-surface-side {
  width: 250px;
  top: 0;
  right: 0;
  animation: floatCard 18s ease-in-out infinite alternate-reverse;
}

.hero-surface-mini {
  width: 220px;
  right: 24px;
  bottom: 0;
  animation: floatCard 14s ease-in-out infinite alternate;
}

.hero-surface-eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-surface strong {
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-surface p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.hero-surface-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-surface-tags span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 600;
}

@keyframes floatOrb {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(14px, -18px, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-10px, 10px, 0) scale(0.98);
  }
}

@keyframes floatCard {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(-0.4deg);
  }
  100% {
    transform: translate3d(0, 8px, 0) rotate(0.35deg);
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  height: 100%;
  align-content: stretch;
}

#global-menu-button {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 253, 250, 0.88));
  border: 1px solid rgba(31, 175, 163, 0.22);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow:
    0 14px 32px rgba(15, 42, 61, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#global-menu-button:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 175, 163, 0.45);
  box-shadow:
    0 18px 40px rgba(15, 42, 61, 0.14),
    0 0 0 1px rgba(31, 175, 163, 0.12);
}

.menu-burger {
  display: inline-grid;
  gap: 4px;
}

.menu-burger span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  z-index: 34;
  background: rgba(15, 42, 61, 0.14);
  backdrop-filter: blur(2px);
}

#global-menu-button.is-open .menu-burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#global-menu-button.is-open .menu-burger span:nth-child(2) {
  opacity: 0;
}

#global-menu-button.is-open .menu-burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.panel {
  grid-column: span 4;
  padding: 14px;
  overflow: auto;
}

.panel-wide {
  grid-column: span 12;
}

.compact-panel {
  padding: 12px 14px;
}

@keyframes menu-nav-in {
  from {
    opacity: 0;
    transform: translate3d(-12px, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes menu-head-glow {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(18deg);
  }
}

#menu-panel {
  position: absolute;
  top: 58px;
  left: 12px;
  bottom: 10px;
  right: auto;
  width: min(380px, calc(100% - 24px));
  z-index: 40;
  overflow: hidden;
  padding: 0;
  transform: translateX(calc(-100% - 18px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s ease, opacity 0.38s ease;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.55), rgba(236, 252, 249, 0.42));
  border: 1px solid rgba(15, 42, 61, 0.1);
  box-shadow:
    0 32px 90px rgba(12, 36, 52, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}

#menu-panel.menu-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

#menu-panel .menu-panel-surface {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#menu-panel .menu-panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(31, 175, 163, 0.22), transparent 52%),
    radial-gradient(circle at 100% 12%, rgba(242, 140, 40, 0.14), transparent 45%),
    radial-gradient(circle at 40% 100%, rgba(99, 102, 241, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(245, 250, 253, 0.25));
  opacity: 0.95;
}

#menu-panel .menu-panel-body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-gutter: stable;
}

#menu-panel .menu-panel-head {
  position: relative;
  padding: 10px 12px 12px;
  margin: -2px -4px 0;
  border-radius: 16px;
  background: linear-gradient(125deg, rgba(15, 42, 61, 0.94), rgba(18, 78, 72, 0.92));
  color: #fff;
  box-shadow:
    0 18px 40px rgba(10, 32, 46, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
  flex-shrink: 0;
}

#menu-panel .menu-panel-head-orbit {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(31, 175, 163, 0.5), rgba(242, 140, 40, 0.35), rgba(99, 102, 241, 0.45), rgba(31, 175, 163, 0.5));
  opacity: 0.55;
  filter: blur(0.5px);
  animation: menu-head-glow 10s ease-in-out infinite;
}

#menu-panel .menu-panel-kicker {
  position: relative;
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(190, 244, 230, 0.95);
}

#menu-panel .menu-panel-title {
  position: relative;
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

#menu-panel .menu-panel-lead {
  position: relative;
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(230, 245, 255, 0.82);
  max-width: 36ch;
}

#menu-panel .menu-panel-lead--compact {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 40ch;
  color: rgba(230, 245, 255, 0.82);
}

#menu-panel .menu-groups--nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px 8px;
  align-content: start;
}

#menu-panel .menu-group--wide,
#menu-panel .menu-group-footer {
  grid-column: auto;
}

#menu-panel.menu-open .menu-groups--nav > .menu-group {
  animation: menu-nav-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(1) {
  animation-delay: 0.04s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(2) {
  animation-delay: 0.07s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(3) {
  animation-delay: 0.1s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(4) {
  animation-delay: 0.13s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(5) {
  animation-delay: 0.16s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(6) {
  animation-delay: 0.19s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(7) {
  animation-delay: 0.22s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(8) {
  animation-delay: 0.25s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(9) {
  animation-delay: 0.28s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(10) {
  animation-delay: 0.31s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(11) {
  animation-delay: 0.34s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(12) {
  animation-delay: 0.37s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(13) {
  animation-delay: 0.4s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(14) {
  animation-delay: 0.43s;
}
#menu-panel.menu-open .menu-groups--nav > .menu-group:nth-child(15) {
  animation-delay: 0.46s;
}

.menu-group {
  display: grid;
  gap: 5px;
}

#menu-panel .menu-group-footer {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 42, 61, 0.08);
}

#menu-panel .menu-nav-primary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  min-height: 42px;
  padding: 7px 10px 7px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow:
    0 6px 16px rgba(15, 42, 61, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

#menu-panel .menu-nav-primary:hover {
  transform: translateX(2px);
  border-color: rgba(31, 175, 163, 0.28);
  box-shadow:
    0 10px 22px rgba(15, 42, 61, 0.08),
    0 0 0 1px rgba(31, 175, 163, 0.1);
}

#menu-panel .menu-nav-primary.secondary {
  background: rgba(255, 255, 255, 0.88);
}

#menu-panel .menu-nav-primary:not(.secondary) {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow:
    0 6px 16px rgba(15, 42, 61, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  color: var(--ink);
}

#menu-panel .menu-nav-primary.menu-nav-primary--logout {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 42, 61, 0.1);
  color: var(--ink);
}

#menu-panel .menu-nav-primary.menu-nav-primary--logout:hover {
  border-color: rgba(31, 175, 163, 0.28);
  box-shadow: 0 10px 22px rgba(15, 42, 61, 0.08);
}

#menu-panel .menu-nav-label {
  flex: 1;
  min-width: 0;
  font-size: 1.02rem;
}

#menu-panel .menu-nav-glyph {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 12px;
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 253, 0.92));
  border: 1px solid rgba(22, 56, 78, 0.09);
  box-shadow: 0 6px 14px rgba(15, 42, 61, 0.07);
  overflow: hidden;
}

#menu-panel .menu-nav-glyph::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, rgba(31, 175, 163, 0.85), rgba(43, 183, 240, 0.75), rgba(242, 140, 40, 0.8));
}

#menu-panel .menu-nav-glyph::after {
  display: none;
}

#menu-panel .menu-nav-emoji {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 420px) {
  #menu-panel .menu-groups--nav {
    grid-template-columns: 1fr;
  }

  #menu-panel .menu-group--wide {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #menu-panel.menu-open .menu-groups--nav > .menu-group {
    animation: none;
  }

  #menu-panel .menu-panel-head-orbit {
    animation: none;
  }
}

.cashier-shell {
  padding: 12px;
  height: 100%;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.stack {
  display: grid;
  gap: 12px;
}

.compact-form {
  gap: 8px;
}

label {
  font-size: 0.84rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  padding: 11px 12px;
  border-radius: 14px;
}

textarea {
  resize: vertical;
  min-height: 72px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
}

button {
  border: 0;
  background: var(--accent);
  color: white;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 20px rgba(31, 175, 163, 0.14);
}

button.secondary {
  background: rgba(15, 42, 61, 0.06);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid rgba(15, 42, 61, 0.1);
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button.secondary:hover {
  background: rgba(15, 42, 61, 0.1);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.note,
.item-card p,
.ticket p,
#account-info p {
  color: var(--muted);
  line-height: 1.5;
}

.note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(31, 175, 163, 0.05);
}

.field-hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(31, 175, 163, 0.08);
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(31, 175, 163, 0.16);
}

.subtle-link-button {
  padding: 10px 14px;
  background: rgba(31, 175, 163, 0.06) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(31, 175, 163, 0.1);
  white-space: nowrap;
}

@keyframes loginWave {
  0% {
    transform: translate3d(-2%, 0, 0) scaleX(1);
  }
  50% {
    transform: translate3d(3%, -2%, 0) scaleX(1.03);
  }
  100% {
    transform: translate3d(8%, 1%, 0) scaleX(0.98);
  }
}

.contact-panel-content {
  max-width: 980px;
}

.legal-submenu {
  margin-top: 0;
}

.legal-section {
  gap: 14px;
}

.legal-card {
  padding: 20px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 42, 61, 0.08);
  display: grid;
  gap: 12px;
}

.legal-card h3,
.legal-card h4,
.legal-card p {
  margin: 0;
}

.legal-card h3 {
  font-size: 1.4rem;
}

.legal-card h4 {
  margin-top: 8px;
  font-size: 0.98rem;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.6;
}

.legal-card a {
  color: var(--accent);
  text-decoration: none;
}

.legal-warning {
  background: rgba(242, 140, 40, 0.09);
  color: var(--ink);
}

.hours-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.hours-filter-field {
  display: grid;
  gap: 6px;
}

.hours-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hours-summary-card {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 99, 86, 0.08);
  display: grid;
  gap: 4px;
}

.hours-summary-card strong {
  font-size: 1.05rem;
}

.hours-summary-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hours-entry-grid {
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
}

.hours-entry-card,
.hours-club-group {
  gap: 12px;
}

.hours-entry-top,
.hours-club-group-head,
.hours-club-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.hours-entry-main h3,
.hours-club-group h3 {
  margin: 0 0 4px;
}

.hours-entry-main p,
.hours-club-group p,
.hours-club-row span,
.hours-entry-meta span,
.hours-club-comment {
  margin: 0;
  color: var(--muted);
}

.hours-entry-meta,
.hours-entry-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.hours-club-group {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(20, 99, 86, 0.08);
}

.hours-club-toggle {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.hours-club-group-metrics {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.hours-club-group-metrics strong {
  font-size: 1.02rem;
}

.hours-club-group-metrics span {
  color: var(--muted);
  font-size: 0.84rem;
}

.hours-club-group-metrics small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.hours-club-group-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.hours-club-row {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(20, 99, 86, 0.05);
  border: 1px solid rgba(20, 99, 86, 0.06);
}

.hours-club-row > div {
  display: grid;
  gap: 4px;
}

.hours-club-comment {
  max-width: 340px;
  text-align: right;
}

.public-calendar-shell {
  display: grid;
  gap: 0;
}

/* —— Öffentlicher Kalender: einladendes Erlebnis —— */
.public-calendar-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: clamp(10px, 1.85vw, 18px) clamp(14px, 2.5vw, 28px);
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, #0d4a43 0%, #146356 38%, #1faf9f 88%, #f28c28 160%);
  color: #fff;
  box-shadow:
    0 14px 36px rgba(13, 74, 67, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.public-calendar-hero-brand {
  margin-bottom: 2px;
}

.public-calendar-hero-logo {
  display: block;
  height: clamp(26px, 4vw, 34px);
  width: auto;
  max-width: min(200px, 46vw);
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
}

.public-calendar-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.public-calendar-hero-title {
  margin: 0 0 2px;
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.public-calendar-hero-title-text {
  display: inline;
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #ecfdf5 22%,
    #fffbeb 42%,
    #ffffff 55%,
    #ccfbf1 72%,
    #ffffff 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: public-cal-hero-title-shine 9s ease-in-out infinite;
}

@keyframes public-cal-hero-title-shine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-calendar-hero-title-text {
    animation: none;
    color: #fff;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
  }
}

.public-calendar-hero-lead {
  margin: 0;
  font-size: clamp(0.72rem, 1.35vw, 0.88rem);
  line-height: 1.25;
  opacity: 0.92;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

@media (max-width: 520px) {
  .public-calendar-hero-lead {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: unset;
  }
}

.public-calendar-toolbar {
  margin-bottom: 10px;
}

.public-calendar-control-rail {
  display: grid;
  gap: 0;
  margin-bottom: 10px;
  padding: 10px 10px 12px;
  border-radius: 20px;
  border: 1px solid rgba(20, 99, 86, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 249, 0.55));
  box-shadow:
    0 16px 44px rgba(20, 99, 86, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.public-calendar-control-rail > .public-calendar-toolbar {
  margin-bottom: 0;
}

.public-calendar-control-rail .public-calendar-quick-filters {
  border-radius: 14px;
  box-shadow:
    0 6px 20px rgba(20, 99, 86, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.public-calendar-control-rail > .public-calendar-filter-details {
  margin: 10px 0 0;
  border-radius: 16px;
  border-color: rgba(20, 99, 86, 0.1);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.public-calendar-control-rail > .public-calendar-filter-details[open] {
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 14px 36px rgba(13, 74, 67, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.public-calendar-quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 10px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(247, 252, 251, 0.88)),
    linear-gradient(135deg, rgba(31, 175, 163, 0.08), rgba(242, 140, 40, 0.06));
  border: 1px solid rgba(20, 99, 86, 0.1);
  box-shadow: 0 8px 26px rgba(15, 42, 61, 0.06);
  position: relative;
  isolation: isolate;
}

.public-calendar-quick-filters::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background: radial-gradient(120% 80% at 10% 0%, rgba(31, 175, 163, 0.12), transparent 55%),
    radial-gradient(100% 90% at 92% 100%, rgba(242, 140, 40, 0.1), transparent 50%);
}

.public-calendar-quick-filters > * {
  position: relative;
  z-index: 1;
}

.public-calendar-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.public-calendar-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: public-cal-orb-float 14s ease-in-out infinite;
}

.public-calendar-hero-orb--a {
  width: 180px;
  height: 180px;
  top: -40px;
  right: -20px;
  background: #5eead4;
  animation-delay: 0s;
}

.public-calendar-hero-orb--b {
  width: 220px;
  height: 220px;
  bottom: -80px;
  left: -60px;
  background: #fdba74;
  animation-delay: -4s;
}

.public-calendar-hero-orb--c {
  width: 120px;
  height: 120px;
  top: 40%;
  left: 40%;
  background: #a7f3d0;
  animation-delay: -7s;
}

@keyframes public-cal-orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -8px) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-calendar-hero-orb {
    animation: none;
    opacity: 0.35;
  }
}

.public-calendar-inline-stats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-right: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 248, 245, 0.9));
  border: 1px solid rgba(20, 99, 86, 0.14);
  box-shadow: 0 4px 16px rgba(20, 99, 86, 0.08);
}

.public-calendar-stat-inline-seg {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.public-calendar-stat-inline-num {
  font-size: 1.05rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.public-calendar-stat-inline-seg--events .public-calendar-stat-inline-num {
  color: #0a5c52;
}

.public-calendar-stat-inline-seg--clubs .public-calendar-stat-inline-num {
  color: #b45309;
}

.public-calendar-stat-inline-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 42, 61, 0.45);
}

.public-calendar-stat-inline-dot {
  font-weight: 800;
  color: rgba(15, 42, 61, 0.2);
  user-select: none;
}

.public-calendar-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.public-calendar-chip {
  border-radius: 999px !important;
  padding: 7px 14px !important;
  font-weight: 750 !important;
  font-size: 0.8rem !important;
  color: #0f2f2c !important;
  border: 1px solid rgba(20, 99, 86, 0.2) !important;
  background: linear-gradient(180deg, #fff, rgba(240, 253, 250, 0.96)) !important;
  box-shadow: none !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.public-calendar-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(20, 99, 86, 0.12) !important;
  color: #062a26 !important;
}

.public-calendar-chip.secondary {
  opacity: 1;
  color: rgba(15, 42, 61, 0.72) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  border-color: rgba(20, 99, 86, 0.12) !important;
}

.public-calendar-chip.secondary:hover {
  color: #0f2f2c !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

.public-calendar-chip:not(.secondary) {
  color: #fff !important;
  border-color: rgba(13, 74, 67, 0.35) !important;
  background: linear-gradient(165deg, #146356, #0d4a43) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 6px 18px rgba(13, 74, 67, 0.35) !important;
}

.public-calendar-chip:not(.secondary):hover {
  color: #fff !important;
  background: linear-gradient(165deg, #178a7c, #0f5c52) !important;
}

.public-calendar-quick-spacer {
  flex: 1 1 auto;
  min-width: 0;
}

.public-calendar-reset-btn {
  border-radius: 999px !important;
  color: rgba(15, 42, 61, 0.78) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(20, 99, 86, 0.14) !important;
  box-shadow: none !important;
}

.public-calendar-reset-btn:hover {
  color: #0f2f2c !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

.public-calendar-filter-details {
  margin: 4px 0 10px;
  border-radius: 18px;
  border: 1px solid rgba(20, 99, 86, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 249, 0.72));
  box-shadow:
    0 14px 36px rgba(15, 42, 61, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.public-calendar-filter-details[open] {
  border-color: rgba(31, 175, 163, 0.28);
  box-shadow:
    0 18px 44px rgba(13, 74, 67, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.public-calendar-filter-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  color: rgba(15, 42, 61, 0.92);
  font-family: inherit;
  position: relative;
  transition: background 0.22s ease;
}

.public-calendar-filter-summary::-webkit-details-marker {
  display: none;
}

.public-calendar-filter-summary::marker {
  content: "";
}

.public-calendar-filter-details[open] > .public-calendar-filter-summary {
  background: linear-gradient(90deg, rgba(31, 175, 163, 0.1), rgba(242, 140, 40, 0.04) 55%, transparent);
  border-bottom: 1px solid rgba(20, 99, 86, 0.1);
}

.public-calendar-filter-summary-glow {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #1faf9f, #f28c28);
  opacity: 0.85;
  pointer-events: none;
}

.public-calendar-filter-summary-icon {
  flex: 0 0 auto;
  font-size: 0.82rem;
  line-height: 1;
  color: #0f766e;
  opacity: 0.92;
  filter: drop-shadow(0 0 10px rgba(31, 175, 163, 0.45));
}

.public-calendar-filter-summary-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.public-calendar-filter-summary-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.public-calendar-filter-summary-active {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  color: rgba(15, 42, 61, 0.55);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-calendar-filter-summary-chevron {
  margin-left: auto;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(15, 42, 61, 0.35);
  border-bottom: 2px solid rgba(15, 42, 61, 0.35);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1), border-color 0.2s ease;
}

.public-calendar-filter-details[open] .public-calendar-filter-summary-chevron {
  transform: rotate(225deg) translateY(2px);
  border-color: rgba(20, 99, 86, 0.55);
}

.public-calendar-filter-details .public-calendar-filter-card {
  margin: 0;
  border-radius: 0 0 14px 14px;
  border: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.55);
}

.public-calendar-filter-card {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 16px 40px rgba(15, 42, 61, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.public-calendar-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 10px;
  align-items: end;
}

.public-calendar-filter-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px 12px 10px;
  border-radius: 14px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(31, 175, 163, 0.1), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(236, 253, 249, 0.65));
  border: 1px solid rgba(20, 99, 86, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 16px rgba(20, 99, 86, 0.06);
  position: relative;
}

.public-calendar-filter-dates::before {
  content: "Zeitraum";
  position: absolute;
  top: -6px;
  left: 10px;
  padding: 0 6px;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20, 99, 86, 0.75);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 249, 0.95));
  border-radius: 6px;
  border: 1px solid rgba(20, 99, 86, 0.1);
}

.public-calendar-filter-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.public-calendar-filter-field label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 42, 61, 0.48);
}

.public-calendar-filter-field input[type="date"],
.public-calendar-filter-field input[type="text"],
.public-calendar-filter-field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(20, 99, 86, 0.14);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(15, 42, 61, 0.04);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.public-calendar-filter-field select {
  cursor: pointer;
}

.public-calendar-filter-field input:hover,
.public-calendar-filter-field select:hover {
  border-color: rgba(31, 175, 163, 0.35);
}

.public-calendar-filter-field input:focus-visible,
.public-calendar-filter-field select:focus-visible {
  outline: none;
  border-color: rgba(31, 175, 163, 0.65);
  box-shadow:
    0 0 0 3px rgba(31, 175, 163, 0.22),
    inset 0 1px 2px rgba(15, 42, 61, 0.04);
  background: #fff;
}

.public-calendar-filter-field--query input {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.35));
}

@media (max-width: 1100px) {
  .public-calendar-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-calendar-filter-dates {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .public-calendar-filter-field--query {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .public-calendar-filter-dates {
    grid-template-columns: 1fr;
  }
}

.public-calendar-view-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 5px;
  border-radius: 14px;
  background: rgba(20, 99, 86, 0.06);
  border: 1px solid rgba(20, 99, 86, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.public-calendar-view-tabs button {
  min-width: 88px;
  border-radius: 10px !important;
  font-weight: 750 !important;
  color: rgba(15, 42, 61, 0.78) !important;
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(20, 99, 86, 0.12) !important;
  box-shadow: none !important;
}

.public-calendar-view-tabs button:hover {
  color: #0f2f2c !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

.public-calendar-view-tabs button.secondary {
  color: rgba(15, 42, 61, 0.62) !important;
  background: rgba(255, 255, 255, 0.45) !important;
}

.public-calendar-view-tabs button:not(.secondary) {
  color: #fff !important;
  background: linear-gradient(165deg, #146356, #0d4a43) !important;
  border-color: rgba(13, 74, 67, 0.35) !important;
  box-shadow: 0 4px 14px rgba(13, 74, 67, 0.28) !important;
}

.public-calendar-view-tabs button:not(.secondary):hover {
  color: #fff !important;
  background: linear-gradient(165deg, #178a7c, #0f5c52) !important;
}

.public-calendar-list-scroll {
  margin-top: 4px;
  overflow: visible;
  max-height: none;
  padding: 0;
  border: none;
  background: transparent;
  scrollbar-gutter: auto;
}

.public-calendar-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.public-calendar-loading,
.public-calendar-empty {
  text-align: center;
  padding: clamp(28px, 6vw, 48px) 20px;
  border-radius: 22px;
  border: 1px dashed rgba(20, 99, 86, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 253, 250, 0.55));
  color: var(--ink);
}

.public-calendar-empty-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 12px rgba(20, 99, 86, 0.2));
}

.public-calendar-empty h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.public-calendar-empty p {
  margin: 0 auto;
  max-width: 26rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.98rem;
}

.public-calendar-month {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.public-calendar-month-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.public-calendar-month-layout.has-detail {
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.95fr);
}

.public-calendar-month-main {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 10px 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(20, 99, 86, 0.1);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(236, 253, 245, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 32px rgba(20, 99, 86, 0.07);
}

.public-calendar-month-scroll {
  max-height: none;
  overflow: visible;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  scrollbar-gutter: auto;
}

.public-calendar-month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 4px 0 10px;
  margin: 0 0 8px;
  border-radius: 0;
  background: transparent;
}

.public-calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.public-calendar-month-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.82), rgba(224, 242, 241, 0.42));
  border: 1px solid rgba(20, 99, 86, 0.12);
  box-shadow:
    0 10px 32px rgba(20, 99, 86, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.public-calendar-month-nav {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 1.45rem !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: #0f766e !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(20, 99, 86, 0.14) !important;
  box-shadow: 0 4px 14px rgba(20, 99, 86, 0.1) !important;
  transition:
    transform 0.2s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.2s ease,
    background 0.2s ease !important;
}

.public-calendar-month-nav:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 22px rgba(20, 99, 86, 0.14) !important;
  background: #fff !important;
}

.public-calendar-month-title {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
  background: linear-gradient(95deg, #115e59, #0d9488 42%, #c2410c 108%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .public-calendar-month-title {
    color: #115e59;
    background: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-calendar-month-nav:hover {
    transform: none;
  }
}

.public-calendar-month-grid > .public-calendar-empty,
.public-calendar-month-grid > .public-calendar-loading {
  grid-column: 1 / -1;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.public-calendar-month-weekdays span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.public-calendar-month-weekdays span:nth-child(6),
.public-calendar-month-weekdays span:nth-child(7) {
  color: #b45309;
}

.public-month-day {
  min-height: 78px;
  padding: 6px 6px;
  border-radius: 14px;
  border: 1px solid rgba(20, 99, 86, 0.09);
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  gap: 4px;
  align-content: start;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.public-month-day.is-outside {
  opacity: 0.52;
  background: rgba(248, 250, 250, 0.72);
  border-style: dashed;
  border-color: rgba(20, 99, 86, 0.06);
}

.public-month-day.is-outside .public-month-day-number {
  color: rgba(15, 42, 61, 0.42);
  font-weight: 650;
}

.public-month-day.is-empty {
  min-height: 48px;
  gap: 2px;
}

.public-month-day.has-events:not(.is-empty) {
  position: relative;
  overflow: hidden;
  border-color: rgba(31, 175, 163, 0.32);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 241, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 22px rgba(20, 99, 86, 0.09);
}

.public-month-day.has-events:not(.is-empty)::before {
  content: "";
  position: absolute;
  inset: -50% -70%;
  background: linear-gradient(
    118deg,
    transparent 42%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 58%
  );
  transform: rotate(11deg);
  animation: public-month-shine 6.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.public-month-day.has-events:not(.is-empty) .public-month-day-number,
.public-month-day.has-events:not(.is-empty) .public-month-day-events {
  position: relative;
  z-index: 1;
}

@keyframes public-month-shine {
  0%,
  100% {
    opacity: 0;
    transform: rotate(11deg) translateX(-12%);
  }
  40% {
    opacity: 1;
  }
  55% {
    opacity: 0;
    transform: rotate(11deg) translateX(12%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-month-day.has-events:not(.is-empty)::before {
    animation: none;
  }
}

.public-month-day.is-today {
  border-color: rgba(31, 175, 163, 0.55);
  box-shadow:
    0 0 0 2px rgba(31, 175, 163, 0.25),
    0 12px 28px rgba(20, 99, 86, 0.12);
  background: linear-gradient(165deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.9));
}

.public-month-day.is-today .public-month-day-number {
  color: #0f766e;
  font-weight: 900;
}

.public-month-day-number {
  font-weight: 700;
  font-size: 0.82rem;
}

.public-month-day-events {
  display: grid;
  gap: 3px;
}

.public-month-event {
  display: grid;
  gap: 1px;
  width: 100%;
  padding: 6px 8px 6px 9px;
  border-radius: 11px;
  border: none;
  border-left: 3px solid #14b8a6;
  text-align: left;
  background: linear-gradient(95deg, rgba(20, 99, 86, 0.12), rgba(20, 99, 86, 0.03));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-left-color 0.18s ease;
}

.public-month-event:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(20, 99, 86, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.public-month-event.is-selected {
  background: linear-gradient(95deg, rgba(13, 74, 67, 0.2), rgba(20, 99, 86, 0.08));
  border-left-color: #f28c28;
  box-shadow:
    0 0 0 1px rgba(20, 99, 86, 0.12),
    0 8px 18px rgba(20, 99, 86, 0.12);
}

.public-month-event strong {
  font-size: 0.68rem;
  line-height: 1.15;
}

.public-month-event span {
  font-size: 0.6rem;
  color: var(--muted);
}

.public-month-more {
  padding: 3px 6px !important;
  border-radius: 8px !important;
  background: rgba(20, 99, 86, 0.12) !important;
  color: var(--accent) !important;
  border: 1px dashed rgba(20, 99, 86, 0.22);
  font-size: 0.62rem;
  font-weight: 700;
  text-align: left;
}

.public-month-more.is-collapse {
  background: rgba(27, 26, 23, 0.06) !important;
  color: var(--muted) !important;
  border-style: solid;
}

.public-calendar-month-detail {
  position: sticky;
  top: 0;
  align-self: start;
}

.public-event-detail-card {
  position: relative;
  padding: 18px 18px 18px 22px;
  border-radius: 20px;
  border: 1px solid rgba(20, 99, 86, 0.14);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(31, 175, 163, 0.12), transparent 42%),
    radial-gradient(90% 60% at 0% 100%, rgba(242, 140, 40, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(240, 253, 250, 0.55));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  gap: 14px;
  min-height: 0;
  box-shadow:
    0 16px 40px rgba(20, 99, 86, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.public-event-detail-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #0d9488, #f28c28);
  opacity: 0.92;
  pointer-events: none;
}

.public-event-detail-card > * {
  position: relative;
  z-index: 1;
}

.public-event-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.public-event-detail-actions {
  display: flex;
  align-items: start;
  gap: 8px;
}

.public-event-detail-top h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: #0f2f2c;
}

.public-event-detail-close {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
}

.public-event-detail-date-badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(20, 99, 86, 0.14);
  background: linear-gradient(95deg, rgba(20, 99, 86, 0.1), rgba(31, 175, 163, 0.08));
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(20, 99, 86, 0.06);
}

.public-event-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.public-event-detail-grid > div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 99, 86, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.public-event-detail-grid strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.76rem;
}

.public-event-detail-grid p,
.public-event-detail-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.public-event-detail-description {
  padding: 2px 2px 0;
}

#public-calendar-panel {
  padding: clamp(8px, 1.2vw, 14px);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(31, 175, 163, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(242, 140, 40, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(94, 234, 212, 0.1), transparent 45%),
    linear-gradient(180deg, #f4faf9 0%, #f7f4ee 100%);
  border: 1px solid rgba(20, 99, 86, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 42, 61, 0.06);
}

#public-calendar-panel .panel-heading {
  margin-bottom: 8px;
}

#public-calendar-panel label {
  font-size: 0.78rem;
}

#public-calendar-panel input,
#public-calendar-panel select {
  padding: 8px 10px;
}

#public-calendar-panel button {
  padding: 10px 14px;
}

.public-event-card {
  --pub-card-accent: #146356;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 0;
  border-radius: 22px;
  border: 1px solid rgba(20, 99, 86, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 251, 0.92) 100%);
  box-shadow: 0 10px 32px rgba(15, 42, 61, 0.06);
  overflow: hidden;
  position: relative;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.public-event-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--pub-card-accent);
  opacity: 0.95;
}

.public-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(20, 99, 86, 0.14);
}

.public-event-card--tone-0 {
  --pub-card-accent: #0d9488;
}
.public-event-card--tone-1 {
  --pub-card-accent: #7c3aed;
}
.public-event-card--tone-2 {
  --pub-card-accent: #db2777;
}
.public-event-card--tone-3 {
  --pub-card-accent: #ca8a04;
}
.public-event-card--tone-4 {
  --pub-card-accent: #2563eb;
}

.public-event-date {
  display: grid;
  gap: 6px;
  padding: 16px 12px;
  margin: 10px 0 10px 10px;
  border-radius: 18px;
  align-content: center;
  text-align: center;
  background: linear-gradient(160deg, rgba(20, 99, 86, 0.1), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(20, 99, 86, 0.12);
  position: relative;
}

.public-event-date::after {
  content: "📅";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.85rem;
  opacity: 0.55;
}

.public-event-date strong {
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 850;
}

.public-event-date span {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 650;
}

.public-event-main {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px 16px 0;
}

.public-event-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.public-event-top h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.public-event-club {
  margin: 4px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.public-event-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.public-event-pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(239, 127, 69, 0.12);
  color: #a24c1f;
  font-size: 0.75rem;
  font-weight: 700;
}

.public-event-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.public-event-description {
  margin: 2px 0 0;
  color: var(--ink);
  line-height: 1.45;
}

.error {
  color: var(--danger);
  min-height: 1.5em;
  margin-top: 12px;
}

.global-signature {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(108, 102, 93, 0.88);
  background: rgba(255, 255, 255, 0.5);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(27, 26, 23, 0.08);
  pointer-events: none;
}

.connection-indicator {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 25;
  padding: 5px 8px 6px;
  border-radius: 12px;
  min-width: 68px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(20, 99, 86, 0.85);
  border: 1px solid rgba(20, 99, 86, 0.08);
  box-shadow: 0 6px 18px rgba(27, 26, 23, 0.05);
}

.connection-indicator-sub {
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
  opacity: 0.78;
}

.connection-indicator.offline {
  background: rgba(255, 255, 255, 0.82);
  color: rgba(179, 60, 46, 0.9);
  border-color: rgba(179, 60, 46, 0.08);
}

.connection-indicator.pending {
  background: rgba(255, 255, 255, 0.82);
  color: #a24c1f;
  border-color: rgba(239, 127, 69, 0.08);
}

.feedback {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.feedback.success {
  color: var(--accent);
  background: rgba(20, 99, 86, 0.08);
}

.feedback.error {
  color: var(--danger);
  background: rgba(179, 60, 46, 0.08);
}

.hidden {
  display: none !important;
}

.item-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.item-card h3,
.item-card strong {
  margin: 0;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0 24px;
}

.summary > div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.summary-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cashier-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cashier-top-sum {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 99, 86, 0.12), rgba(20, 99, 86, 0.04));
  border: 1px solid rgba(20, 99, 86, 0.12);
}

.cashier-top-sum span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.cashier-top-sum strong {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.top-sum {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 99, 86, 0.12), rgba(20, 99, 86, 0.04));
  border: 1px solid rgba(20, 99, 86, 0.12);
}

.top-sum span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.top-sum strong {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.cashier-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  height: calc(100% - 54px);
  min-height: 0;
  overflow: hidden;
}

.cashier-menu-stack {
  display: grid;
  gap: 8px;
}

.submenu-actions {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  margin-left: 14px;
  padding-top: 0;
}

.submenu-actions {
  gap: 7px;
  margin-top: 1px;
  margin-left: 18px;
  position: relative;
}

.submenu-actions::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(31, 175, 163, 0.16), rgba(31, 175, 163, 0.04));
}

#menu-panel .submenu-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-left: 0;
  padding: 6px 0 4px 12px;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.55);
}

#menu-panel .submenu-actions::before {
  left: 2px;
  width: 3px;
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 175, 163, 0.55), rgba(31, 175, 163, 0.12));
  box-shadow: none;
}

#menu-panel .submenu-actions button {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px 8px 12px;
  font-size: 0.9rem;
  border-radius: 10px;
}

.submenu-actions button {
  width: 100%;
  padding: 10px 13px;
  border-radius: 14px;
  background: rgba(15, 42, 61, 0.045);
  justify-content: flex-start;
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}

.submenu-actions button {
  background: rgba(15, 42, 61, 0.038);
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#menu-panel .menu-nav-primary:hover,
#menu-panel .menu-sub-link:hover,
.submenu-actions button:hover {
  transform: translateX(4px);
  border-color: rgba(31, 175, 163, 0.22);
  box-shadow: 0 12px 24px rgba(15, 42, 61, 0.07);
}

#menu-panel .menu-sub-link {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  min-height: 40px;
  font-size: 0.92rem;
  font-weight: 650;
  padding: 8px 10px 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 42, 61, 0.06);
}

.page-shell.app-shell #hours-panel .panel-heading {
  display: none;
}

.page-shell.app-shell #product-panel .panel-heading,
.page-shell.app-shell #calendar-panel .panel-heading,
.page-shell.app-shell #contact-panel .panel-heading,
.page-shell.app-shell #admin-panel .panel-heading {
  display: none;
}

.page-shell.app-shell #cashier-panel .panel-heading,
.page-shell.app-shell #history-panel .panel-heading {
  margin-bottom: 10px;
}

.page-shell.app-shell #cashier-panel .panel-heading > div:first-child,
.page-shell.app-shell #history-panel .panel-heading > div:first-child {
  display: none;
}

.page-shell.app-shell #cashier-panel .panel-heading,
.page-shell.app-shell #history-panel .panel-heading {
  padding-top: 0;
  align-items: center;
}

#menu-panel.panel.compact-panel {
  padding: 0;
}

.login-hero-card {
  padding: 48px 56px;
}

.login-hero-text {
  max-width: none;
}

@media (min-width: 1180px) {
  .login-hero-card h2 {
    font-size: clamp(3rem, 4.6vw, 4.6rem);
  }
}

@media (max-width: 1100px) {
  #menu-panel {
    width: min(320px, calc(100% - 24px));
  }
}

.products-area {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 0;
  overflow: hidden;
}

.product-grid {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.category-tabs {
  display: flex;
  flex-direction: row;
  gap: 6px;
  max-height: none;
  overflow: visible;
  flex-wrap: wrap;
  margin-bottom: 8px;
  overflow: hidden;
}

.category-tab {
  width: auto;
  min-height: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(27, 26, 23, 0.08);
  color: var(--ink);
  writing-mode: horizontal-tb;
  text-orientation: initial;
  transform: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-tab.active {
  background: var(--accent);
  color: #fff;
}

.category-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.category-group {
  display: grid;
  width: 100%;
  gap: 8px;
  align-content: start;
  padding: 10px 0 12px;
  margin: 0;
  border-top: 2px solid rgba(20, 99, 86, 0.2);
  border-bottom: 1px solid rgba(27, 26, 23, 0.12);
}

.category-title {
  margin: 0;
  font-size: 1.06rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.cart-category-items {
  display: grid;
  gap: 8px;
}

.touch-button {
  min-height: 64px;
  width: 100%;
  border-radius: 16px;
  padding: 6px;
  background: linear-gradient(135deg, #146356, #0f4c43);
  color: #fff;
  text-align: left;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 2px;
  align-content: start;
}

.touch-button.selected {
  background: linear-gradient(135deg, #ef7f45, #c85d26);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.touch-button strong,
.touch-button span {
  display: block;
}

.touch-button strong {
  font-size: 1.28rem;
  line-height: 1;
  align-self: start;
  margin-top: -2px;
}

.touch-button span {
  font-size: 0.82rem;
}

.button-count {
  justify-self: end;
  min-width: 46px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.95rem;
  line-height: 46px;
  letter-spacing: -0.03em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 0;
}

.touch-button.selected .button-count {
  background: rgba(255, 255, 255, 0.34);
}

.button-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.button-controls button {
  min-height: 34px;
  padding: 4px 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

#print-button {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(20, 99, 86, 0.18);
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 16px;
  min-height: 52px;
}

.icon-button {
  background: rgba(179, 60, 46, 0.12);
  color: var(--danger);
  padding: 8px 10px;
}

.product-actions,
.quantity-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.compact-product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.product-admin-group {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 8px 0 10px;
  border-top: 2px solid rgba(20, 99, 86, 0.18);
}

.product-admin-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-admin-items {
  display: grid;
  gap: 8px;
}

.compact-product-list .item-card h3,
.product-admin-items .item-card h3 {
  font-size: 1rem;
}

.compact-product-list .item-card p,
.product-admin-items .item-card p {
  font-size: 0.78rem;
  line-height: 1.25;
}

.compact-product-list .product-actions,
.product-admin-items .product-actions {
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.compact-product-list .product-actions strong,
.product-admin-items .product-actions strong {
  font-size: 0.95rem;
  width: 100%;
  text-align: center;
}

.compact-product-list .product-actions button,
.product-admin-items .product-actions button {
  padding: 8px 10px;
  font-size: 0.82rem;
}

.product-admin-items .item-card {
  align-items: center;
}

.product-admin-items .item-card > div:first-child {
  text-align: left;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.admin-layout.admin-layout-wide {
  grid-template-columns: 1fr;
}

.admin-layout.admin-layout-wide .admin-column,
.admin-layout.admin-layout-wide .admin-main-column,
.admin-column,
.admin-main-column {
  width: 100%;
}

.admin-layout.admin-layout-wide .admin-main-column {
  order: 1;
}

.admin-layout.admin-layout-wide .admin-column {
  order: 2;
}

.admin-mode-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.page-shell.app-shell #admin-calendar-section {
  display: none !important;
}

.page-shell.app-shell #admin-event-categories-section .admin-section-head {
  display: none;
}

.page-shell.app-shell #admin-event-categories-section {
  padding-top: 0;
}

.admin-mode-tabs button {
  padding: 9px 14px;
}

.admin-club-tools-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-club-tools-tabs button {
  padding: 9px 14px;
}

.admin-column {
  align-content: start;
  display: grid;
  gap: 20px;
}

.admin-main-column {
  align-content: start;
  display: grid;
  gap: 20px;
}

.admin-section-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  width: 100%;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 8px;
}

.subsection-title {
  margin: 0;
  font-size: 1rem;
}

.admin-inline-note {
  margin-top: 0;
  margin-bottom: 4px;
  padding: 10px 12px;
}

.admin-club-card {
  align-items: start;
}

.selected-card {
  border-color: rgba(20, 99, 86, 0.32);
  box-shadow: 0 10px 24px rgba(20, 99, 86, 0.08);
}

.admin-club-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  color: var(--muted);
}

.admin-club-meta strong {
  color: var(--ink);
}

.admin-club-stat-users {
  font-weight: 700;
  color: var(--ink);
}

.admin-usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-usage-table th,
.admin-usage-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(15, 42, 61, 0.08);
  text-align: left;
}

.admin-club-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.role-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.role-option {
  display: flex;
  gap: 8px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.role-option input {
  margin-top: 2px;
}

.role-option strong {
  display: block;
  margin-bottom: 2px;
}

.role-option span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.admin-user-roles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-user-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 16px;
  align-items: start;
}

.admin-user-form-card {
  padding: 12px;
  border: 1px solid rgba(27, 26, 23, 0.08);
  border-radius: 16px;
  background: rgba(247, 244, 238, 0.72);
}

.admin-role-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(20, 99, 86, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

#calendar-panel {
  padding: 12px;
}

#calendar-panel .panel-heading {
  margin-bottom: 8px;
}

#calendar-panel .compact-form {
  gap: 6px;
}

#calendar-panel label {
  font-size: 0.78rem;
}

#calendar-panel input,
#calendar-panel select,
#calendar-panel textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  font: inherit;
  font-size: 0.92rem;
}

#calendar-panel textarea {
  min-height: 74px;
  resize: vertical;
}

#calendar-panel .checkbox-row {
  display: inline-flex;
  gap: 8px;
  font-size: 0.88rem;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
}

#calendar-panel .checkbox-row input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}

#calendar-panel .actions {
  gap: 8px;
}

#calendar-panel .actions button {
  padding: 11px 14px;
}

.calendar-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.calendar-date-grid,
.calendar-time-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calendar-address-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(92px, 0.45fr) minmax(0, 1.1fr);
}

.calendar-all-day-row {
  margin: 2px 0 0;
}

.calendar-time-field.hidden {
  display: none;
}

.calendar-item-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.calendar-item-main {
  display: grid;
  gap: 6px;
}

.calendar-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.calendar-item-top h3 {
  margin: 0;
}

.calendar-item-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calendar-item-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.calendar-item-description {
  margin: 0;
}

#admin-event-category-list {
  gap: 10px;
}

.admin-roles-matrix-wrap {
  overflow: auto;
}

.admin-roles-scroll {
  overflow: auto;
  padding-bottom: 6px;
}

.admin-role-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.admin-role-legend-pill {
  display: inline-grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(20, 99, 86, 0.07);
  border: 1px solid rgba(20, 99, 86, 0.08);
}

.admin-role-legend-pill strong {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.admin-role-legend-pill span {
  font-size: 0.82rem;
}

.admin-roles-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-roles-table th,
.admin-roles-table td {
  padding: 9px 10px;
  border-right: 1px solid rgba(27, 26, 23, 0.08);
  border-bottom: 1px solid rgba(27, 26, 23, 0.08);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.admin-roles-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(247, 244, 238, 0.96);
  font-size: 0.82rem;
}

.admin-role-head {
  display: grid;
  gap: 2px;
}

.admin-role-head span {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.admin-role-head strong {
  font-size: 0.82rem;
}

.admin-roles-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 220px;
  text-align: left;
  background: rgba(247, 244, 238, 0.96);
}

.admin-roles-table tbody td {
  position: relative;
  z-index: 0;
}

.admin-role-user {
  display: grid;
  gap: 2px;
}

.admin-role-user span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.admin-role-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 32px;
  cursor: pointer;
}

/* Globales input { width:100%; padding … } würde Matrix-Checkboxen unbenutzbar machen */
.admin-role-cell input[type="checkbox"] {
  width: 1.125rem !important;
  height: 1.125rem !important;
  min-width: 1.125rem !important;
  min-height: 1.125rem !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0;
  vertical-align: middle;
}

.admin-role-cell-locked {
  background: rgba(20, 99, 86, 0.04) !important;
}

.admin-role-cell input:disabled {
  opacity: 0.45;
}

.quantity-button {
  min-width: 34px;
  padding: 8px 10px;
}

.quantity-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.cart-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.cart-amount {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.95rem;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.history-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.pivot-wrap {
  overflow: auto;
  padding-bottom: 8px;
}

.pivot-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.pivot-table th,
.pivot-table td {
  padding: 8px 9px;
  border-right: 1px solid rgba(27, 26, 23, 0.08);
  border-bottom: 1px solid rgba(27, 26, 23, 0.08);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  vertical-align: middle;
}

.pivot-table thead th,
.pivot-table tfoot th,
.pivot-table tfoot td {
  background: rgba(20, 99, 86, 0.1);
}

.pivot-corner,
.pivot-product {
  position: sticky;
  left: 0;
  z-index: 1;
}

.pivot-corner {
  text-align: left;
  min-width: 140px;
  font-size: 0.86rem;
}

.pivot-product {
  text-align: left;
  font-weight: 700;
  min-width: 140px;
  font-size: 0.92rem;
}

.pivot-day {
  min-width: 98px;
  font-size: 0.8rem;
}

.pivot-value,
.pivot-total,
.pivot-grand-total {
  min-width: 98px;
}

.pivot-value strong,
.pivot-total strong,
.pivot-grand-total strong {
  display: inline;
  font-size: 0.92rem;
  line-height: 1.1;
}

.pivot-value span,
.pivot-total span,
.pivot-grand-total span {
  display: inline;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.1;
  margin-left: 4px;
}

.pivot-empty {
  color: rgba(108, 102, 93, 0.6);
  font-weight: 700;
}

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

.ticket {
  background: #fff;
  border: 1px solid rgba(27, 26, 23, 0.28);
  border-radius: 12px;
  padding: 5px 8px 6px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.ticket-meta {
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0;
}

.ticket-product {
  font-size: 2.35rem;
  line-height: 0.9;
  margin: 0;
}

.ticket-club {
  font-size: 0.8rem;
  line-height: 1.05;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .page-shell {
    height: auto;
  }

  .grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  #login-panel,
  .login-hero-panel {
    grid-column: span 1;
  }

  .login-hero-card {
    padding: 28px 22px;
  }

  .login-hero-points {
    grid-template-columns: 1fr;
  }

  .cashier-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
  }

  .product-grid,
  .category-tabs {
    max-height: none;
    height: auto;
    overflow: visible;
  }

  .products-area {
    overflow: visible;
  }

  .category-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .category-tab {
    width: auto;
    min-height: auto;
    writing-mode: horizontal-tb;
    text-orientation: initial;
    transform: none;
    padding: 10px 14px;
    border-radius: 999px;
  }

  .panel,
  .panel-wide {
    grid-column: auto;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cashier-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-user-layout {
    grid-template-columns: 1fr;
  }

  .calendar-form-grid,
  .calendar-item-card {
    grid-template-columns: 1fr;
  }

  .public-calendar-filters,
  .public-event-card {
    grid-template-columns: 1fr;
  }

  .public-event-card .public-event-date {
    margin: 12px 12px 0 12px;
  }

  .public-event-main {
    padding: 0 14px 16px 14px;
  }

  .public-calendar-quick-spacer {
    display: none;
  }

  .public-calendar-month-detail {
    position: static;
  }

  .public-event-detail-top,
  .public-event-detail-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .public-event-detail-actions {
    width: 100%;
    justify-content: space-between;
  }

  .public-event-pills {
    justify-content: flex-start;
  }

  .compact-product-list {
    grid-template-columns: 1fr;
  }

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

  .global-signature {
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    font-size: 0.66rem;
  }
}

@media (max-width: 1280px) {
  #login-panel {
    grid-column: span 5;
  }

  .login-hero-panel {
    grid-column: span 7;
  }

  .login-hero-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .login-hero-stage {
    min-height: 360px;
  }

  .hero-surface-main {
    inset: 32px 110px 42px 0;
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .page-shell {
    width: calc(100% - 16px);
    height: auto;
    min-height: calc(100vh - 16px);
    margin: 8px auto;
  }

  .grid {
    height: auto;
  }

  #login-panel,
  .login-hero-panel {
    grid-column: span 12;
  }

  #login-panel {
    order: 2;
  }

  .login-hero-panel {
    order: 1;
  }

  .login-card-shell,
  .login-hero-card {
    padding: 28px 24px;
  }

  .login-hero-main {
    grid-template-columns: 1fr;
  }

  .login-hero-stage {
    min-height: 320px;
  }

  .hero-surface-main {
    inset: 24px 90px 30px 0;
  }

  .hero-surface-side {
    width: 230px;
  }

  .hero-surface-mini {
    width: 200px;
  }
}

@media (max-width: 720px) {
  .login-panel-topbar {
    align-items: start;
    flex-direction: column;
  }

  .login-topbar-pill {
    font-size: 0.68rem;
  }

  .brand-logo-login,
  .brand-logo-hero {
    width: 100%;
  }

  .login-hero-card h2,
  .login-brand-meta h2 {
    line-height: 1.02;
  }

  .login-hero-card h2 {
    font-size: clamp(2.6rem, 14vw, 4.1rem);
  }

  .login-hero-text {
    font-size: 1rem;
    line-height: 1.65;
  }

  .login-hero-stage {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .hero-surface {
    position: relative;
    inset: auto;
    width: 100%;
    animation: none;
  }

  .login-hero-orb-a,
  .login-hero-orb-b,
  .login-hero-orb-c,
  .login-hero-grid-overlay {
    opacity: 0.8;
  }
}

.login-hero-panel {
  grid-column: span 8;
  padding: 0;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 175, 163, 0.12), transparent 20%),
    radial-gradient(circle at 88% 14%, rgba(242, 140, 40, 0.16), transparent 18%),
    linear-gradient(135deg, #0d2232 0%, #13374d 52%, #0f2a3d 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 96px rgba(15, 42, 61, 0.2);
}

.login-hero-panel::before,
.login-hero-panel::after,
.login-hero-grid-overlay,
.login-hero-orb {
  display: none;
}

.login-hero-card {
  position: relative;
  z-index: 1;
  min-height: 100%;
  height: 100%;
  padding: 42px 48px;
  display: grid;
}

.login-hero-card-immersive {
  grid-template-rows: auto 1fr;
  gap: 26px;
}

.login-hero-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-hero-wave {
  position: absolute;
  left: -12%;
  right: -12%;
  height: 170px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  filter: blur(0.2px);
}

.login-hero-wave-a {
  top: 14%;
  transform: rotate(-10deg);
  animation: heroWaveDriftA 18s ease-in-out infinite alternate;
}

.login-hero-wave-b {
  top: 44%;
  transform: rotate(7deg);
  animation: heroWaveDriftB 24s ease-in-out infinite alternate;
}

.login-hero-wave-c {
  bottom: 8%;
  transform: rotate(-6deg);
  animation: heroWaveDriftC 20s ease-in-out infinite alternate;
}

.login-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.8;
}

.login-hero-glow-a {
  width: 320px;
  height: 320px;
  right: -70px;
  top: -50px;
  background: radial-gradient(circle, rgba(242, 140, 40, 0.18), rgba(242, 140, 40, 0));
  animation: heroGlowFloat 20s ease-in-out infinite alternate;
}

.login-hero-glow-b {
  width: 380px;
  height: 380px;
  left: -100px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(31, 175, 163, 0.22), rgba(31, 175, 163, 0));
  animation: heroGlowFloat 24s ease-in-out infinite alternate-reverse;
}

.login-hero-brandplate {
  width: fit-content;
  max-width: min(100%, 620px);
  padding: 18px 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 44px rgba(8, 21, 32, 0.18);
}

.brand-logo-hero {
  width: min(100%, 520px);
  margin: 0;
  display: block;
  filter: none;
}

.login-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 30px;
  align-items: end;
  min-height: 100%;
}

.login-hero-copy-wrap {
  display: grid;
  align-content: end;
  gap: 18px;
}

.login-hero-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-hero-card h2 {
  color: #ffffff;
  font-size: clamp(3.5rem, 6vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 0;
}

.login-hero-text {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  line-height: 1.75;
}

.login-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-hero-chips span {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
}

.login-hero-showcase {
  display: grid;
  gap: 14px;
}

.hero-showcase-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-showcase-card {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.16);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.hero-showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 32px 66px rgba(0, 0, 0, 0.2);
}

.hero-showcase-card-large {
  min-height: 230px;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.12)),
    radial-gradient(circle at top right, rgba(31, 175, 163, 0.16), transparent 42%);
}

.hero-showcase-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.hero-showcase-card strong {
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-showcase-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

@keyframes heroWaveDriftA {
  0% { transform: translate3d(-1%, 0, 0) rotate(-10deg); }
  100% { transform: translate3d(3%, -10px, 0) rotate(-7deg); }
}

@keyframes heroWaveDriftB {
  0% { transform: translate3d(2%, 0, 0) rotate(7deg); }
  100% { transform: translate3d(-2%, 12px, 0) rotate(10deg); }
}

@keyframes heroWaveDriftC {
  0% { transform: translate3d(0, 0, 0) rotate(-6deg); }
  100% { transform: translate3d(4%, -8px, 0) rotate(-2deg); }
}

@keyframes heroGlowFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-10px, 14px, 0) scale(1.05); }
}

@media (max-width: 1280px) {
  .login-hero-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }
}

@media (max-width: 980px) {
  .login-hero-card {
    padding: 28px 24px;
  }

  .login-hero-brandplate {
    padding: 14px 18px;
    border-radius: 24px;
  }

  .hero-showcase-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .login-hero-brandplate {
    width: 100%;
  }

  .brand-logo-hero {
    width: 100%;
  }

  .login-hero-card h2 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .hero-showcase-card,
  .hero-showcase-card-large {
    min-height: auto;
  }
}

.login-hero-panel {
  grid-column: span 8;
  padding: 0;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at left center, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 34%, rgba(255, 255, 255, 0.1) 56%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(120deg, #eef4f8 0%, #f8fbfd 34%, #dde8f0 58%, #c7d6df 100%);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 38px 92px rgba(15, 42, 61, 0.14);
}

.login-hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-hero-curve,
.login-hero-halo {
  position: absolute;
  border-radius: 50%;
}

.login-hero-curve {
  border: 1px solid rgba(15, 42, 61, 0.08);
  opacity: 0.6;
}

.login-hero-curve-a {
  width: 820px;
  height: 250px;
  right: -120px;
  top: 48px;
  transform: rotate(-10deg);
}

.login-hero-curve-b {
  width: 980px;
  height: 320px;
  right: -180px;
  top: 210px;
  transform: rotate(-8deg);
}

.login-hero-curve-c {
  width: 920px;
  height: 280px;
  right: -120px;
  bottom: 10px;
  transform: rotate(-6deg);
}

.login-hero-halo-a {
  width: 420px;
  height: 420px;
  right: 12%;
  top: 20%;
  background: radial-gradient(circle, rgba(31, 175, 163, 0.12), rgba(31, 175, 163, 0));
  filter: blur(30px);
}

.login-hero-halo-b {
  width: 340px;
  height: 340px;
  right: -80px;
  top: 10%;
  background: radial-gradient(circle, rgba(242, 140, 40, 0.16), rgba(242, 140, 40, 0));
  filter: blur(28px);
}

.login-hero-card-premium {
  position: relative;
  z-index: 1;
  min-height: 100%;
  height: 100%;
  padding: 30px 34px 28px 38px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 26px;
}

.login-hero-topnav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.brand-logo-hero-header {
  width: min(100%, 250px);
  display: block;
  height: auto;
}

.login-hero-navlinks {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-nav-link {
  background: transparent;
  color: var(--ink);
  border: 0;
  box-shadow: none;
  padding: 10px 14px;
  font-weight: 600;
  border-radius: 12px;
}

.landing-nav-link:hover {
  background: rgba(15, 42, 61, 0.06);
  transform: none;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-login-button {
  min-width: 112px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 14px 24px rgba(15, 42, 61, 0.06);
}

.landing-login-button:hover {
  background: rgba(255, 255, 255, 0.94);
}

.landing-cta-button {
  min-width: 164px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1fafa3, #168e84);
  box-shadow: 0 18px 30px rgba(31, 175, 163, 0.18);
}

.landing-cta-button:hover {
  background: linear-gradient(135deg, #23bdb0, #14877d);
}

.login-hero-premium-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 30px;
  align-items: stretch;
  min-height: 0;
}

.premium-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  padding-top: 28px;
}

.premium-copy h2 {
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.premium-copy .login-hero-text {
  max-width: 38ch;
  color: rgba(15, 42, 61, 0.78);
  font-size: 1.08rem;
  line-height: 1.68;
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.landing-primary-button,
.landing-secondary-button {
  min-height: 58px;
  border-radius: 18px;
  padding: 0 22px;
}

.landing-primary-button {
  background: linear-gradient(135deg, #1fafa3, #168e84);
  box-shadow: 0 18px 32px rgba(31, 175, 163, 0.2);
}

.landing-primary-button:hover {
  background: linear-gradient(135deg, #23bdb0, #14877d);
}

.landing-secondary-button {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 14px 26px rgba(15, 42, 61, 0.06);
}

.landing-secondary-button:hover {
  background: rgba(255, 255, 255, 0.98);
}

.landing-proof-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.landing-proof-avatars {
  display: flex;
  align-items: center;
}

.landing-proof-avatars span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  background: linear-gradient(135deg, #e0e8ef, #aab9c4);
  margin-left: -10px;
  box-shadow: 0 8px 20px rgba(15, 42, 61, 0.1);
}

.landing-proof-avatars span:first-child {
  margin-left: 0;
}

.landing-proof-copy {
  display: grid;
  gap: 4px;
}

.landing-proof-copy strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.landing-proof-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.landing-visual-stage {
  position: relative;
  min-height: 100%;
  display: grid;
  align-items: end;
}

.landing-visual-photo {
  position: relative;
  min-height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 215, 150, 0.44), rgba(255, 215, 150, 0) 24%),
    linear-gradient(180deg, rgba(49, 70, 88, 0.12), rgba(15, 42, 61, 0.28)),
    linear-gradient(120deg, #7f95a6 0%, #b8c9d2 30%, #d9bca2 58%, #8e6f59 100%);
  box-shadow: inset 0 -80px 120px rgba(15, 42, 61, 0.2);
}

.landing-visual-photo::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -12%;
  width: 65%;
  height: 46%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  filter: blur(8px);
}

.landing-visual-people {
  position: absolute;
  inset: 0;
}

.people-blob {
  position: absolute;
  border-radius: 999px 999px 28px 28px;
  background: linear-gradient(180deg, rgba(17, 42, 60, 0.9), rgba(17, 42, 60, 0.55));
  box-shadow: 0 10px 28px rgba(15, 42, 61, 0.14);
}

.blob-a {
  width: 124px;
  height: 260px;
  right: 20%;
  bottom: 12%;
  background: linear-gradient(180deg, #1d8f8a, #0f6060);
}

.blob-b {
  width: 94px;
  height: 212px;
  right: 2%;
  bottom: 16%;
}

.blob-c {
  width: 86px;
  height: 186px;
  right: 33%;
  bottom: 12%;
  background: linear-gradient(180deg, #f2f4f6, #cfd9e0);
}

.blob-d {
  width: 82px;
  height: 176px;
  right: 44%;
  bottom: 10%;
  background: linear-gradient(180deg, #4e5e6b, #283744);
}

.blob-e {
  width: 70px;
  height: 150px;
  right: 57%;
  bottom: 10%;
  background: linear-gradient(180deg, #d7dee4, #aebbc4);
}

.landing-phone-card {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 228px;
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(180deg, #121b24, #263341);
  box-shadow: 0 32px 70px rgba(15, 42, 61, 0.24);
  transform: rotate(10deg);
}

.landing-phone-notch {
  width: 86px;
  height: 20px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.9);
}

.landing-phone-screen {
  padding: 16px 14px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f7f9fb);
  display: grid;
  gap: 12px;
}

.landing-phone-head {
  display: grid;
  gap: 4px;
}

.landing-phone-head strong {
  color: var(--ink);
  font-size: 1rem;
}

.landing-phone-head span,
.landing-phone-cardlist span,
.landing-phone-cardlist small {
  color: var(--muted);
  font-size: 0.78rem;
}

.landing-phone-search {
  padding: 12px 12px;
  border-radius: 14px;
  background: #f4f6f8;
  color: #b0b9c1;
  font-size: 0.78rem;
}

.landing-phone-icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.landing-phone-icons span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  border-radius: 14px;
  background: rgba(31, 175, 163, 0.08);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.landing-phone-cardlist {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 42, 61, 0.04);
}

.landing-phone-cardlist strong {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.3;
}

@media (max-width: 1280px) {
  .login-hero-topnav {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .login-hero-navlinks {
    justify-content: flex-start;
  }

  .landing-nav-actions {
    justify-content: flex-start;
  }

  .login-hero-premium-layout {
    grid-template-columns: 1fr;
  }

  .landing-visual-stage {
    min-height: 480px;
  }
}

@media (max-width: 980px) {
  .login-hero-card-premium {
    padding: 26px 24px 24px;
  }

  .landing-visual-stage {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .global-brand-badge {
    left: 14px;
    top: 12px;
    padding: 8px 12px;
    min-height: 44px;
  }

  .global-brand-badge img {
    width: 132px;
  }

  .page-shell.app-shell {
    padding-top: 72px;
  }

  .page-shell.public-shell {
    padding-top: 12px;
  }

  .global-page-context {
    left: 156px;
    right: 14px;
  }

  .login-hero-navlinks {
    width: 100%;
    justify-content: flex-start;
  }

  .landing-nav-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .landing-login-button,
  .landing-cta-button {
    min-width: 0;
    flex: 1 1 180px;
  }

  .premium-copy h2 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .landing-visual-stage {
    min-height: 360px;
  }

  .landing-phone-card {
    width: 188px;
  }
}

body.modal-open {
  overflow: hidden;
}

.landing-login-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(8, 20, 30, 0.36);
  backdrop-filter: blur(10px);
}

.page-shell.landing-shell {
  width: calc(100% - 24px);
  margin: 12px auto;
  height: calc(100vh - 24px);
}

.page-shell.landing-shell .grid {
  gap: 0;
}

.page-shell.landing-shell #login-hero-panel {
  grid-column: 1 / -1;
  min-height: 100%;
  border-radius: 34px;
}

.page-shell.landing-shell #login-panel {
  position: fixed;
  top: 50%;
  left: 32px;
  z-index: 89;
  width: min(440px, calc(100vw - 64px));
  height: auto;
  max-height: calc(100vh - 64px);
  transform: translateY(-50%);
  overflow: auto;
  border-radius: 30px;
  box-shadow: 0 42px 90px rgba(8, 20, 30, 0.22);
}

.page-shell.landing-shell .login-card-shell {
  padding: 30px 30px 28px;
  grid-template-rows: auto auto auto auto;
  gap: 20px;
}

.login-modal-topbar {
  align-items: center;
}

.login-modal-close {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 16px;
  background: rgba(15, 42, 61, 0.06);
  color: var(--ink);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: none;
  font-size: 1.5rem;
  line-height: 1;
}

.login-modal-close:hover {
  background: rgba(15, 42, 61, 0.1);
  transform: translateY(-1px);
}

.page-shell.landing-shell .login-support {
  padding-top: 14px;
}

.page-shell.landing-shell .login-hero-panel {
  background:
    radial-gradient(circle at left center, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 32%, rgba(255, 255, 255, 0.18) 54%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(120deg, #eef5f9 0%, #f9fbfd 34%, #e0eaf1 58%, #c7d6df 100%);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 38px 92px rgba(15, 42, 61, 0.12);
}

.page-shell.landing-shell .login-hero-backdrop,
.page-shell.landing-shell .login-hero-panel::before,
.page-shell.landing-shell .login-hero-panel::after {
  display: none;
}

.page-shell.landing-shell .login-hero-card {
  min-height: 100%;
  padding: 26px 30px 24px 34px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 26px;
}

.page-shell.landing-shell .login-hero-topnav {
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
}

.page-shell.landing-shell .brand-logo-hero-header {
  width: min(100%, 240px);
}

.page-shell.landing-shell .login-hero-navlinks {
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
}

.page-shell.landing-shell .landing-nav-link {
  padding: 10px 0;
  background: transparent;
  color: rgba(15, 42, 61, 0.82);
  font-weight: 600;
  box-shadow: none;
}

.page-shell.landing-shell .landing-nav-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.page-shell.landing-shell .landing-nav-actions {
  flex-wrap: nowrap;
}

.page-shell.landing-shell .landing-login-button {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 12px 24px rgba(15, 42, 61, 0.06);
}

.page-shell.landing-shell .landing-cta-button {
  min-width: 172px;
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  gap: 36px;
  align-items: stretch;
}

.page-shell.landing-shell .premium-copy {
  align-content: center;
  gap: 22px;
  padding: 16px 6px 10px 6px;
}

.page-shell.landing-shell .landing-display-headline {
  display: grid;
  gap: 2px;
}

.page-shell.landing-shell .landing-display-line {
  display: block;
  font-size: clamp(4.2rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.page-shell.landing-shell .landing-display-line.ink {
  color: #0f2333;
}

.page-shell.landing-shell .landing-display-line.accent {
  color: #23b7b0;
}

.page-shell.landing-shell .landing-display-line.warm {
  color: #f28c28;
}

.page-shell.landing-shell .login-hero-text {
  max-width: 500px;
  color: #47586a;
  font-size: 1.26rem;
  line-height: 1.62;
}

.page-shell.landing-shell .landing-cta-row {
  gap: 14px;
  margin-top: 2px;
}

.page-shell.landing-shell .landing-proof-row {
  max-width: 460px;
  margin-top: 8px;
  padding: 8px 0 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-shell.landing-shell .landing-proof-copy strong {
  font-size: 0.98rem;
}

.page-shell.landing-shell .landing-proof-copy p {
  font-size: 0.92rem;
}

.page-shell.landing-shell .landing-visual-stage {
  min-height: 590px;
}

.page-shell.landing-shell .landing-visual-photo {
  min-height: 100%;
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 239, 188, 0.98), rgba(255, 239, 188, 0) 22%),
    radial-gradient(circle at 62% 18%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(15, 42, 61, 0.18)),
    linear-gradient(120deg, #d8e3ea 0%, #f0ece4 30%, #bea48d 56%, #826957 100%);
  box-shadow: inset 0 -120px 130px rgba(15, 42, 61, 0.14);
}

.page-shell.landing-shell .landing-visual-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.66) 18%, rgba(255, 255, 255, 0.12) 38%, rgba(255, 255, 255, 0) 54%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 50%);
}

.page-shell.landing-shell .landing-scene-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(15, 42, 61, 0.08);
}

.page-shell.landing-shell .landing-visual-banner {
  position: absolute;
  top: 74px;
  right: 108px;
  z-index: 2;
  padding: 24px 22px;
  border-radius: 22px 22px 26px 26px;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(15, 42, 61, 0.78);
  font-size: 1.18rem;
  line-height: 1.5;
  font-weight: 700;
  box-shadow: 0 20px 44px rgba(15, 42, 61, 0.12);
}

.page-shell.landing-shell .landing-visual-banner::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 42px;
  border-radius: 18px 18px 20px 20px;
  background:
    radial-gradient(circle at 18% 20%, rgba(35, 183, 176, 0.42), rgba(35, 183, 176, 0) 36%),
    radial-gradient(circle at 74% 78%, rgba(35, 183, 176, 0.65), rgba(35, 183, 176, 0.08) 50%, rgba(35, 183, 176, 0) 64%);
}

.page-shell.landing-shell .blob-a {
  width: 150px;
  height: 316px;
  right: 18%;
  bottom: 6%;
}

.page-shell.landing-shell .blob-b {
  width: 112px;
  height: 236px;
  right: 1%;
  bottom: 13%;
}

.page-shell.landing-shell .blob-c {
  width: 98px;
  height: 208px;
  right: 33%;
  bottom: 9%;
}

.page-shell.landing-shell .blob-d {
  width: 90px;
  height: 194px;
  right: 46%;
  bottom: 8%;
}

.page-shell.landing-shell .blob-e {
  width: 80px;
  height: 164px;
  right: 58%;
  bottom: 7%;
}

.page-shell.landing-shell .landing-phone-card {
  right: 18px;
  bottom: 8px;
  width: 262px;
  transform: rotate(8deg);
}

.page-shell.landing-shell .landing-feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.page-shell.landing-shell .landing-feature-tile {
  padding: 10px 12px 10px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-shell.landing-shell .landing-feature-icon {
  position: relative;
  display: inline-flex;
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 175, 163, 0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 175, 163, 0.08), rgba(31, 175, 163, 0.02) 62%, rgba(255, 255, 255, 0.72) 100%);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.72);
}

.page-shell.landing-shell .landing-feature-icon::before,
.page-shell.landing-shell .landing-feature-icon::after {
  content: "";
  position: absolute;
}

.page-shell.landing-shell .landing-feature-icon.icon-people::before {
  left: 19px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 18px 0 0 var(--accent), 9px 16px 0 2px rgba(31, 175, 163, 0.18);
}

.page-shell.landing-shell .landing-feature-icon.icon-people::after {
  left: 15px;
  bottom: 18px;
  width: 38px;
  height: 18px;
  border: 3px solid var(--accent);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom: 0;
}

.page-shell.landing-shell .landing-feature-icon.icon-calendar::before {
  left: 18px;
  top: 17px;
  width: 32px;
  height: 28px;
  border-radius: 10px;
  border: 3px solid var(--accent);
}

.page-shell.landing-shell .landing-feature-icon.icon-calendar::after {
  left: 24px;
  top: 11px;
  width: 20px;
  height: 8px;
  border-top: 3px solid var(--accent);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  box-shadow: -10px 7px 0 -1px rgba(31, 175, 163, 0.24), 10px 7px 0 -1px rgba(31, 175, 163, 0.24);
}

.page-shell.landing-shell .landing-feature-icon.icon-chat::before {
  left: 17px;
  top: 18px;
  width: 34px;
  height: 24px;
  border-radius: 14px;
  border: 3px solid var(--accent);
}

.page-shell.landing-shell .landing-feature-icon.icon-chat::after {
  left: 24px;
  bottom: 15px;
  width: 12px;
  height: 12px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: skew(-18deg);
}

.page-shell.landing-shell .landing-feature-icon.icon-members::before {
  left: 20px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--accent);
}

.page-shell.landing-shell .landing-feature-icon.icon-members::after {
  left: 14px;
  bottom: 16px;
  width: 40px;
  height: 18px;
  border: 3px solid var(--accent);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-bottom: 0;
}

.page-shell.landing-shell .landing-feature-tile strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.02rem;
}

.page-shell.landing-shell .landing-feature-tile p {
  margin: 0;
  color: #58697a;
  font-size: 0.94rem;
  line-height: 1.55;
}

@media (max-width: 1280px) {
  .page-shell.landing-shell .login-hero-topnav {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .page-shell.landing-shell .login-hero-navlinks,
  .page-shell.landing-shell .landing-nav-actions {
    justify-content: flex-start;
  }

  .page-shell.landing-shell .login-hero-premium-layout,
  .page-shell.landing-shell .landing-feature-strip {
    grid-template-columns: 1fr;
  }

  .page-shell.landing-shell .landing-visual-stage {
    min-height: 480px;
  }
}

@media (max-width: 980px) {
  .page-shell.landing-shell {
    height: auto;
    min-height: calc(100vh - 16px);
  }

  .page-shell.landing-shell #login-panel {
    left: 20px;
    width: min(460px, calc(100vw - 40px));
  }

  .page-shell.landing-shell .login-hero-card {
    padding: 24px 22px 22px;
  }

  .page-shell.landing-shell .landing-visual-stage {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .page-shell.landing-shell {
    width: calc(100% - 12px);
    margin: 6px auto;
    min-height: calc(100vh - 12px);
  }

  .page-shell.landing-shell #login-panel {
    left: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .page-shell.landing-shell .login-hero-card {
    gap: 18px;
  }

  .page-shell.landing-shell .premium-copy h2 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .page-shell.landing-shell .landing-cta-row,
  .page-shell.landing-shell .landing-nav-actions {
    flex-wrap: wrap;
  }

  .page-shell.landing-shell .landing-primary-button,
  .page-shell.landing-shell .landing-secondary-button,
  .page-shell.landing-shell .landing-login-button,
  .page-shell.landing-shell .landing-cta-button {
    width: 100%;
  }

  .page-shell.landing-shell .landing-display-line {
    font-size: clamp(3.2rem, 14vw, 4.8rem);
  }

  .page-shell.landing-shell .landing-visual-banner {
    right: 22px;
    top: 18px;
    font-size: 0.98rem;
  }
}

.global-brand-badge {
  position: fixed;
  top: 18px;
  right: 22px;
  left: auto;
  z-index: 130;
  padding: 10px 16px;
  min-height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 16px 34px rgba(15, 42, 61, 0.08);
  backdrop-filter: blur(14px);
}

.global-brand-badge img {
  width: 170px;
  height: auto;
}

.page-shell.public-shell .global-brand-badge,
.page-shell.landing-shell .global-brand-badge,
.page-shell.app-shell .global-brand-badge {
  right: 22px;
  left: auto;
}

.global-page-context {
  right: 244px;
}

.page-shell.app-shell {
  padding-top: 92px;
}

.page-shell.public-shell {
  padding-top: 16px;
}

.page-shell.landing-shell {
  height: auto;
  min-height: calc(100vh - 24px);
}

.page-shell.landing-shell .grid {
  height: auto;
  min-height: calc(100vh - 24px);
  align-content: start;
}

.page-shell.landing-shell #login-hero-panel {
  min-height: calc(100vh - 24px);
}

.page-shell.landing-shell .login-hero-card {
  min-height: calc(100vh - 76px);
  gap: 22px;
}

.page-shell.landing-shell .login-hero-topnav {
  padding-right: 218px;
  gap: 24px;
}

.page-shell.landing-shell .brand-logo-hero-header {
  width: min(100%, 228px);
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 40px;
}

.page-shell.landing-shell .premium-copy {
  gap: 18px;
  padding: 26px 4px 10px 6px;
}

.page-shell.landing-shell .landing-display-line {
  font-size: clamp(3.8rem, 6.2vw, 6rem);
}

.page-shell.landing-shell .login-hero-text {
  max-width: 470px;
  font-size: 1.16rem;
  line-height: 1.58;
}

.page-shell.landing-shell .landing-proof-row {
  max-width: 420px;
  margin-top: 4px;
}

.page-shell.landing-shell .landing-proof-copy strong {
  font-size: 0.94rem;
}

.page-shell.landing-shell .landing-proof-copy p {
  font-size: 0.88rem;
}

.page-shell.landing-shell .landing-visual-stage {
  min-height: 540px;
}

.page-shell.landing-shell .landing-visual-photo {
  min-height: 540px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 237, 190, 0.96), rgba(255, 237, 190, 0) 20%),
    radial-gradient(circle at 64% 16%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(15, 42, 61, 0.16)),
    linear-gradient(120deg, #d9e4eb 0%, #f3eee6 30%, #c4ab94 58%, #846a58 100%);
}

.page-shell.landing-shell .landing-visual-photo::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.72) 20%, rgba(255, 255, 255, 0.18) 38%, rgba(255, 255, 255, 0) 54%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 50%);
}

.page-shell.landing-shell .landing-scene-badge {
  display: none;
}

.page-shell.landing-shell .landing-visual-banner {
  top: 68px;
  right: 78px;
  width: 156px;
  padding: 20px 18px 40px;
  font-size: 1.04rem;
  line-height: 1.48;
}

.page-shell.landing-shell .landing-visual-banner::after {
  left: 16px;
  right: 16px;
  bottom: 10px;
  height: 36px;
}

.page-shell.landing-shell .blob-a {
  width: 144px;
  height: 302px;
  right: 18%;
  bottom: 4%;
}

.page-shell.landing-shell .blob-b {
  width: 106px;
  height: 228px;
  right: 2%;
  bottom: 10%;
}

.page-shell.landing-shell .blob-c {
  width: 92px;
  height: 198px;
  right: 34%;
  bottom: 8%;
}

.page-shell.landing-shell .blob-d {
  width: 88px;
  height: 188px;
  right: 47%;
  bottom: 7%;
}

.page-shell.landing-shell .blob-e {
  width: 76px;
  height: 156px;
  right: 59%;
  bottom: 6%;
}

.page-shell.landing-shell .landing-phone-card {
  right: 10px;
  bottom: 4px;
  width: 236px;
  transform: rotate(7deg);
}

.page-shell.landing-shell .landing-feature-strip {
  gap: 14px;
}

.page-shell.landing-shell .landing-feature-tile {
  padding-top: 0;
}

.page-shell.landing-shell .landing-feature-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 12px;
}

.page-shell.landing-shell .landing-feature-tile strong {
  font-size: 0.98rem;
}

.page-shell.landing-shell .landing-feature-tile p {
  font-size: 0.9rem;
}

@media (max-width: 1280px) {
  .global-page-context {
    right: 24px;
  }

  .page-shell.landing-shell .login-hero-topnav {
    padding-right: 0;
  }

  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: 1fr;
  }

  .page-shell.landing-shell .landing-visual-stage,
  .page-shell.landing-shell .landing-visual-photo {
    min-height: 460px;
  }
}

@media (max-width: 720px) {
  .global-brand-badge {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    min-height: 44px;
  }

  .global-brand-badge img {
    width: 136px;
  }

  .page-shell.app-shell {
    padding-top: 74px;
  }

  .page-shell.public-shell {
    padding-top: 12px;
  }

  .global-page-context {
    left: 18px;
    right: 18px;
    top: 66px;
  }

  .page-shell.landing-shell .login-hero-topnav {
    padding-right: 0;
  }

  .page-shell.landing-shell .landing-display-line {
    font-size: clamp(3rem, 13vw, 4.4rem);
  }

  .page-shell.landing-shell .landing-visual-stage,
  .page-shell.landing-shell .landing-visual-photo {
    min-height: 360px;
  }

  .page-shell.landing-shell .landing-visual-banner {
    right: 16px;
    top: 16px;
    width: 132px;
    font-size: 0.92rem;
  }

  .page-shell.landing-shell .landing-phone-card {
    width: 180px;
  }
}

/* Final layout cleanup */
.global-page-context {
  top: 16px;
  left: 94px;
  right: 226px;
  gap: 0;
}

.global-page-context .eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.global-page-context h2 {
  font-size: 1.34rem;
  line-height: 1.02;
}

.connection-indicator {
  top: 104px;
  right: 22px;
}

.page-shell.landing-shell .login-hero-card {
  min-height: calc(100vh - 84px);
}

.page-shell.landing-shell .login-hero-topnav {
  padding-right: 216px;
}

.page-shell.landing-shell .login-hero-premium-layout {
  align-items: center;
}

.page-shell.landing-shell .landing-visual-stage,
.page-shell.landing-shell .landing-visual-photo {
  min-height: 510px;
}

.page-shell.landing-shell .landing-visual-banner,
.page-shell.landing-shell .landing-scene-badge {
  display: none !important;
}

.page-shell.landing-shell .landing-visual-photo::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.74) 18%, rgba(255, 255, 255, 0.22) 35%, rgba(255, 255, 255, 0) 54%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 50%);
}

.page-shell.landing-shell .landing-visual-photo::after {
  left: -4%;
  bottom: -8%;
  width: 54%;
  height: 36%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0));
}

.page-shell.landing-shell .blob-a {
  width: 138px;
  height: 292px;
  right: 19%;
  bottom: 6%;
}

.page-shell.landing-shell .blob-b {
  width: 102px;
  height: 220px;
  right: 3%;
  bottom: 11%;
}

.page-shell.landing-shell .blob-c {
  width: 88px;
  height: 190px;
  right: 34%;
  bottom: 9%;
}

.page-shell.landing-shell .blob-d {
  width: 82px;
  height: 176px;
  right: 46%;
  bottom: 8%;
}

.page-shell.landing-shell .blob-e {
  width: 70px;
  height: 148px;
  right: 58%;
  bottom: 7%;
}

.page-shell.landing-shell .landing-phone-card {
  right: 18px;
  bottom: 12px;
  width: 214px;
  transform: rotate(4deg);
  box-shadow: 0 28px 56px rgba(15, 42, 61, 0.16);
}

.page-shell.landing-shell .landing-phone-screen {
  gap: 10px;
}

.page-shell.landing-shell .landing-feature-strip {
  align-items: start;
}

@media (max-width: 1280px) {
  .global-page-context {
    left: 92px;
    right: 190px;
  }

  .page-shell.landing-shell .login-hero-topnav {
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .global-page-context {
    top: 16px;
    left: 78px;
    right: 154px;
  }

  .connection-indicator {
    top: 82px;
    right: 12px;
  }

  .page-shell.landing-shell .landing-visual-stage,
  .page-shell.landing-shell .landing-visual-photo {
    min-height: 340px;
  }

  .page-shell.landing-shell .landing-phone-card {
    width: 166px;
    right: 10px;
    bottom: 8px;
  }
}

/* Final landing and header polish */
.global-page-context {
  top: 14px;
  left: 122px;
  right: 232px;
  gap: 1px;
}

.global-page-context h2 {
  font-size: 1.3rem;
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(450px, 1.08fr);
  gap: 48px;
}

.page-shell.landing-shell .premium-copy {
  padding-top: 10px;
}

.page-shell.landing-shell .landing-visual-stage {
  min-height: 530px;
  display: flex;
  align-items: stretch;
}

.page-shell.landing-shell .landing-visual-photo {
  min-height: 530px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 14%, rgba(255, 240, 199, 0.98), rgba(255, 240, 199, 0) 20%),
    radial-gradient(circle at 54% 18%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(15, 42, 61, 0.12)),
    linear-gradient(118deg, #dce6ec 0%, #f4eee3 28%, #caaf96 58%, #866c58 100%);
  box-shadow: inset 0 -130px 120px rgba(15, 42, 61, 0.12);
}

.page-shell.landing-shell .landing-visual-photo::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.82) 18%, rgba(255, 255, 255, 0.24) 35%, rgba(255, 255, 255, 0) 54%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 52%);
}

.page-shell.landing-shell .landing-visual-photo::after {
  left: -6%;
  bottom: -9%;
  width: 58%;
  height: 38%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
}

.page-shell.landing-shell .landing-scene-logo-wrap {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(320px, 46%);
  padding: 16px 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 18px 36px rgba(15, 42, 61, 0.1);
  backdrop-filter: blur(16px);
}

.page-shell.landing-shell .landing-scene-logo {
  display: block;
  width: 100%;
  height: auto;
}

.page-shell.landing-shell .landing-phone-card {
  right: 18px;
  bottom: 18px;
  width: 206px;
  transform: rotate(5deg);
}

.page-shell.landing-shell .blob-a {
  width: 142px;
  height: 296px;
  right: 18%;
  bottom: 5%;
}

.page-shell.landing-shell .blob-b {
  width: 104px;
  height: 218px;
  right: 1%;
  bottom: 11%;
}

.page-shell.landing-shell .blob-c {
  width: 90px;
  height: 192px;
  right: 34%;
  bottom: 8%;
}

.page-shell.landing-shell .blob-d {
  width: 82px;
  height: 174px;
  right: 46%;
  bottom: 8%;
}

.page-shell.landing-shell .blob-e {
  width: 72px;
  height: 146px;
  right: 58%;
  bottom: 7%;
}

@media (max-width: 1280px) {
  .global-page-context {
    left: 114px;
    right: 204px;
  }

  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-shell.landing-shell .landing-visual-stage,
  .page-shell.landing-shell .landing-visual-photo {
    min-height: 460px;
  }

  .page-shell.landing-shell .landing-scene-logo-wrap {
    width: min(280px, 48%);
  }
}

@media (max-width: 720px) {
  .global-page-context {
    left: 92px;
    right: 148px;
    top: 14px;
  }

  .page-shell.landing-shell .landing-visual-stage,
  .page-shell.landing-shell .landing-visual-photo {
    min-height: 340px;
  }

  .page-shell.landing-shell .landing-scene-logo-wrap {
    top: 14px;
    left: 14px;
    width: min(220px, 56%);
    padding: 10px 12px;
    border-radius: 20px;
  }

  .page-shell.landing-shell .landing-phone-card {
    width: 158px;
    right: 8px;
    bottom: 8px;
  }
}

/* Welcome dashboard and compact calendar */
#dashboard-panel {
  padding: 18px 20px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 252, 0.94)),
    linear-gradient(135deg, rgba(31, 175, 163, 0.04), rgba(242, 140, 40, 0.03));
}

.dashboard-welcome {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.dashboard-welcome h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.dashboard-copy {
  margin: 0;
  max-width: 720px;
  color: #58697a;
  font-size: 1.08rem;
  line-height: 1.6;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.dashboard-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 22px 22px 20px;
  text-align: left;
  align-content: end;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.94)),
    linear-gradient(135deg, rgba(31, 175, 163, 0.05), rgba(242, 140, 40, 0.03));
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 18px 40px rgba(15, 42, 61, 0.06);
  color: var(--ink);
}

.dashboard-card:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96)),
    linear-gradient(135deg, rgba(31, 175, 163, 0.08), rgba(242, 140, 40, 0.04));
  box-shadow: 0 24px 46px rgba(15, 42, 61, 0.08);
}

.dashboard-card-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.dashboard-card strong {
  font-size: 1.5rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.dashboard-card p {
  margin: 0;
  color: #607283;
  line-height: 1.55;
  font-size: 0.96rem;
}

#calendar-panel {
  padding: 10px 12px 12px;
}

#calendar-panel .compact-calendar-form {
  gap: 6px;
}

#calendar-panel .compact-calendar-form label {
  font-size: 0.74rem;
  margin-bottom: 3px;
}

#calendar-panel .compact-calendar-form input,
#calendar-panel .compact-calendar-form select,
#calendar-panel .compact-calendar-form textarea {
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 0.9rem;
}

#calendar-panel .compact-calendar-form textarea {
  min-height: 58px;
}

#calendar-panel .calendar-top-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.8fr);
}

#calendar-panel .calendar-date-grid,
#calendar-panel .calendar-time-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

#calendar-panel .calendar-address-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(86px, 0.38fr) minmax(0, 1fr);
  gap: 6px;
}

#calendar-panel .calendar-meta-grid {
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px 18px;
  align-items: center;
}

#calendar-panel .calendar-all-day-row,
#calendar-panel .calendar-meta-grid .checkbox-row {
  margin: 0;
  padding: 2px 0;
  font-size: 0.84rem;
}

#calendar-panel .actions {
  margin-top: 2px;
  gap: 8px;
}

#calendar-panel .actions button {
  padding: 10px 13px;
  border-radius: 12px;
}

#calendar-panel .divider {
  margin: 12px 0 10px;
}

#calendar-panel #calendar-list {
  gap: 8px;
}

@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #dashboard-panel {
    padding: 14px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-card {
    min-height: 148px;
    padding: 18px;
  }

  #calendar-panel .calendar-top-grid,
  #calendar-panel .calendar-date-grid,
  #calendar-panel .calendar-time-grid,
  #calendar-panel .calendar-address-grid,
  #calendar-panel .calendar-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* Calendar redesign */
#calendar-panel {
  padding: 14px;
}

.calendar-manage-shell {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

.calendar-editor-card,
.calendar-events-card {
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.95)),
    linear-gradient(135deg, rgba(31, 175, 163, 0.05), rgba(242, 140, 40, 0.03));
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 18px 38px rgba(15, 42, 61, 0.06);
}

.calendar-editor-card {
  position: sticky;
  top: 0;
}

.calendar-editor-head,
.calendar-events-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.calendar-editor-head h3,
.calendar-events-head h3,
.calendar-empty-card h3,
.calendar-entry-top h3 {
  margin: 0;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.calendar-editor-head h3,
.calendar-events-head h3 {
  font-size: 1.3rem;
}

.calendar-editor-head p,
.calendar-events-head p {
  margin: 0;
  color: #627384;
  line-height: 1.55;
  font-size: 0.92rem;
}

#calendar-panel .compact-calendar-form {
  gap: 8px;
}

#calendar-panel .calendar-form-section {
  padding: 10px 10px 8px;
  border-radius: 16px;
  background: rgba(245, 248, 250, 0.88);
  border: 1px solid rgba(15, 42, 61, 0.05);
}

#calendar-panel .compact-calendar-form label {
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #678091;
}

#calendar-panel .compact-calendar-form input,
#calendar-panel .compact-calendar-form select,
#calendar-panel .compact-calendar-form textarea {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 42, 61, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#calendar-panel .compact-calendar-form textarea {
  min-height: 70px;
}

#calendar-panel .calendar-top-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.8fr);
  gap: 8px;
}

#calendar-panel .calendar-date-grid,
#calendar-panel .calendar-time-grid {
  gap: 8px;
}

#calendar-panel .calendar-address-grid {
  gap: 8px;
}

#calendar-panel .calendar-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 42, 61, 0.08);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

#calendar-panel .calendar-meta-grid {
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px;
}

#calendar-panel .actions {
  margin-top: 6px;
}

#calendar-panel .actions button {
  min-height: 46px;
}

.calendar-events-list {
  gap: 12px;
}

.calendar-empty-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(31, 175, 163, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(248, 251, 252, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px dashed rgba(31, 175, 163, 0.28);
}

.calendar-empty-card p {
  margin: 0;
  max-width: 44ch;
  color: #627384;
  line-height: 1.6;
}

.calendar-empty-badge {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(31, 175, 163, 0.1);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-entry-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 12px 28px rgba(15, 42, 61, 0.05);
}

.calendar-entry-date {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 14px 10px 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(31, 175, 163, 0.14), rgba(31, 175, 163, 0.05)),
    rgba(247, 250, 252, 0.98);
  border: 1px solid rgba(31, 175, 163, 0.14);
  text-align: center;
}

.calendar-entry-day {
  font-size: 2rem;
  line-height: 0.95;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.06em;
}

.calendar-entry-month {
  font-size: 0.92rem;
  text-transform: capitalize;
  color: var(--accent);
}

.calendar-entry-range {
  color: #7b8b99;
  font-size: 0.74rem;
}

.calendar-entry-main {
  display: grid;
  gap: 10px;
  align-content: start;
}

.calendar-entry-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.calendar-entry-title-wrap {
  display: grid;
  gap: 4px;
}

.calendar-entry-top h3 {
  font-size: 1.18rem;
  line-height: 1.06;
}

.calendar-entry-subline {
  margin: 0;
  color: #607283;
  font-size: 0.9rem;
}

.calendar-entry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.calendar-entry-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 42, 61, 0.05);
  color: #385062;
  font-size: 0.74rem;
  font-weight: 700;
}

.calendar-entry-pill.category {
  background: rgba(31, 175, 163, 0.11);
  color: var(--accent-dark);
}

.calendar-entry-pill.published {
  background: rgba(242, 140, 40, 0.12);
  color: #c26d12;
}

.calendar-entry-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calendar-entry-detail {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(247, 250, 252, 0.92);
  border: 1px solid rgba(15, 42, 61, 0.05);
}

.calendar-entry-detail span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7b8b99;
}

.calendar-entry-detail strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.4;
}

.calendar-entry-description {
  margin: 0;
  color: #5d7182;
  line-height: 1.58;
}

.calendar-entry-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.calendar-entry-actions button {
  min-width: 120px;
}

@media (max-width: 1080px) {
  .calendar-manage-shell {
    grid-template-columns: 1fr;
  }

  .calendar-editor-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .calendar-entry-card {
    grid-template-columns: 1fr;
  }

  .calendar-entry-date {
    grid-template-columns: auto auto 1fr;
    align-items: center;
    text-align: left;
    gap: 8px;
  }

  .calendar-entry-day {
    font-size: 1.5rem;
  }

  .calendar-entry-top,
  .calendar-entry-details {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .calendar-entry-pills {
    justify-content: flex-start;
  }

  .calendar-entry-actions {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-entry-actions button {
    min-width: 0;
  }
}

@page {
  size: 80mm auto;
  margin: 0.5mm 1mm 1mm;
}

@media print {
  body {
    background: #fff;
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .no-print,
  #login-panel,
  #account-panel,
  #menu-panel,
  #product-panel,
  #calendar-panel,
  #cashier-panel,
  #history-panel {
    display: none !important;
  }

  #print-panel {
    display: block !important;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .ticket-grid {
    display: block;
  }

  .ticket {
    page-break-after: always;
    break-after: page;
    min-height: auto;
    border-radius: 0;
    border-width: 0;
    width: 78mm;
    padding: 1.5mm 1mm 1.5mm;
    gap: 0.8mm;
    align-items: center;
    text-align: center;
  }

  .ticket-product {
    font-size: 29pt;
    margin: 0;
  }

  .ticket-club {
    font-size: 8pt;
  }

  .ticket-meta {
    font-size: 7pt;
  }

  .ticket:last-child {
    page-break-after: auto;
    break-after: auto;
  }
}

/* Landing and members refinement */
.login-hero-card-premium {
  min-height: calc(100vh - 38px);
  padding: 24px 26px 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), rgba(245, 248, 250, 0.96) 48%, rgba(241, 246, 248, 0.94) 100%);
  border-radius: 36px;
  overflow: hidden;
}

.login-hero-topnav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.brand-logo-hero-header {
  width: min(320px, 100%);
  max-width: 320px;
  height: auto;
}

.login-hero-navlinks {
  justify-content: center;
  gap: 28px;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-hero-premium-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.74fr) minmax(420px, 1.06fr);
  gap: 28px;
  align-items: stretch;
}

.login-hero-copy-wrap.premium-copy {
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 10px 0 0 10px;
  max-width: 560px;
}

.landing-display-headline {
  display: grid;
  gap: 4px;
}

.landing-display-line {
  font-size: clamp(3.55rem, 7vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.login-hero-text {
  max-width: 26ch;
  font-size: 1.14rem;
  line-height: 1.65;
  color: #516273;
}

.landing-cta-row {
  gap: 14px;
}

.landing-proof-row {
  padding: 0;
  background: transparent;
  border: 0;
}

.landing-feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.landing-feature-tile {
  padding: 18px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 42, 61, 0.06);
  box-shadow: 0 14px 30px rgba(15, 42, 61, 0.04);
}

.landing-visual-stage {
  min-height: 700px;
}

.landing-visual-photo {
  position: relative;
  min-height: 700px;
  border-radius: 40px;
  overflow: hidden;
  background:
    linear-gradient(108deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.18) 34%, rgba(15, 42, 61, 0.08) 100%),
    radial-gradient(circle at 30% 20%, rgba(255, 222, 169, 0.95), rgba(255, 222, 169, 0) 24%),
    linear-gradient(145deg, #e9eff3 0%, #d9e5ec 22%, #caa27f 52%, #47362c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 28px 60px rgba(15, 42, 61, 0.1);
}

.landing-visual-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 42, 61, 0.18));
  pointer-events: none;
}

.landing-scene-badge,
.landing-visual-banner {
  display: none;
}

.landing-scene-logo-wrap {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  padding: 14px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 36px rgba(15, 42, 61, 0.08);
  backdrop-filter: blur(14px);
}

.landing-scene-logo {
  width: 230px;
  max-width: min(42vw, 230px);
  height: auto;
}

.landing-visual-people {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.people-blob {
  position: absolute;
  bottom: 0;
  width: 120px;
  height: 260px;
  border-radius: 120px 120px 36px 36px;
  box-shadow: 0 18px 36px rgba(15, 42, 61, 0.16);
}

.people-blob::before {
  content: "";
  position: absolute;
  top: -54px;
  left: 50%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: inherit;
  box-shadow: inherit;
}

.blob-a {
  left: 20%;
  z-index: 1;
  transform: scale(0.86);
  background: linear-gradient(180deg, #d8dfe5, #6a7076);
}

.blob-b {
  left: 34%;
  z-index: 2;
  background: linear-gradient(180deg, #0c1828, #4b5660);
}

.blob-c {
  left: 48%;
  z-index: 4;
  width: 160px;
  height: 340px;
  background: linear-gradient(180deg, #18a79d, #0f6f79);
}

.blob-c::before {
  width: 86px;
  height: 86px;
  top: -62px;
}

.blob-d {
  left: 66%;
  z-index: 2;
  width: 116px;
  height: 238px;
  transform: scale(0.94);
  background: linear-gradient(180deg, #c89b83, #6d5650);
}

.blob-e {
  right: 4%;
  z-index: 1;
  width: 112px;
  height: 248px;
  background: linear-gradient(180deg, #151a23, #3b4147);
}

.landing-phone-card {
  position: absolute;
  right: 18px;
  bottom: 6px;
  z-index: 5;
  width: 285px;
  padding: 14px 12px 18px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(19, 22, 27, 0.98), rgba(44, 48, 54, 0.95));
  box-shadow: 0 28px 60px rgba(15, 42, 61, 0.28);
  transform: rotate(9deg);
}

.landing-phone-screen {
  min-height: 420px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f4f7f9);
}

.landing-phone-icons span {
  background: rgba(31, 175, 163, 0.08);
  color: #0f2a3d;
}

.landing-phone-cardlist {
  border: 1px solid rgba(15, 42, 61, 0.06);
  box-shadow: 0 8px 18px rgba(15, 42, 61, 0.04);
}

#members-panel {
  padding: 14px;
}

.members-shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.94fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

.members-editor-card,
.members-overview-card {
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.95)),
    linear-gradient(135deg, rgba(31, 175, 163, 0.05), rgba(242, 140, 40, 0.03));
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 18px 38px rgba(15, 42, 61, 0.06);
}

.members-editor-card {
  position: sticky;
  top: 0;
  display: grid;
  gap: 14px;
}

.members-editor-head,
.members-overview-head {
  display: grid;
  gap: 6px;
}

.members-editor-head h3,
.members-overview-head h3,
.members-empty-card h3,
.member-card h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.members-editor-head h3,
.members-overview-head h3 {
  font-size: 1.34rem;
}

.members-editor-head p,
.members-overview-head p {
  margin: 0;
  color: #607283;
  line-height: 1.55;
}

.members-course-manager,
.members-form-section {
  padding: 12px;
  border-radius: 18px;
  background: rgba(245, 248, 250, 0.88);
  border: 1px solid rgba(15, 42, 61, 0.05);
}

.members-course-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.members-course-head strong {
  color: var(--ink);
  font-size: 1rem;
}

.members-course-head p {
  margin: 0;
  color: #6d7e8e;
  font-size: 0.9rem;
}

.members-section-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: #678091;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.members-course-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.members-course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.members-course-list-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 42, 61, 0.08);
}

.members-course-list-item span {
  font-weight: 600;
  color: var(--ink);
}

.members-form {
  gap: 10px;
}

.members-id-chip-wrap {
  display: flex;
}

.members-id-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 175, 163, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.members-form-grid {
  display: grid;
  gap: 8px;
}

.members-person-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.members-address-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(90px, 0.34fr) minmax(0, 1fr);
}

.members-bank-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-sepa-mandate-panel {
  grid-column: 1 / -1;
}

.member-sepa-mandate-hint {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.member-sepa-mandate-readonly {
  display: grid;
  gap: 0.35rem 1rem;
  margin: 0;
  font-size: 0.9rem;
}

.member-sepa-mandate-readonly dt {
  color: var(--muted);
  font-weight: 600;
}

.member-sepa-mandate-readonly dd {
  margin: 0;
}

.members-sepa-interval-heading {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.members-sepa-interval-checkboxes {
  flex-wrap: wrap;
}

.members-sepa-interval-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.members-sepa-stammdaten {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 42, 61, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.members-sepa-stammdaten-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.members-sepa-stammdaten-lead {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.members-sepa-stammdaten-warn {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #7a2e12;
  background: rgba(255, 193, 7, 0.18);
  border: 1px solid rgba(255, 152, 0, 0.45);
}

.members-sepa-stammdaten-grid {
  align-items: end;
}

.members-sepa-stammdaten-actions {
  align-self: end;
}

.members-sepa-stammdaten #members-sepa-stammdaten-feedback {
  margin-top: 0.65rem;
}

.members-sepa-preview-table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(15, 42, 61, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

.members-sepa-preview-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.members-sepa-preview-table th,
.members-sepa-preview-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 42, 61, 0.06);
  vertical-align: top;
}

.members-sepa-preview-table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a7c8a;
  background: rgba(248, 250, 252, 0.96);
}

.members-sepa-preview-table tr.is-excluded td {
  background: rgba(255, 235, 238, 0.35);
}

.members-sepa-preview-table tr.is-included td {
  background: rgba(232, 245, 233, 0.35);
}

.members-sepa-preview-detail {
  white-space: normal;
  min-width: 220px;
  max-width: 520px;
  line-height: 1.45;
}

.members-sepa-journal {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 42, 61, 0.1);
}

.members-sepa-journal-meta.is-error {
  color: #b00020;
}

.members-sepa-journal-filters .members-sepa-journal-search-span {
  grid-column: 1 / -1;
}

.members-sepa-journal-filters .members-sepa-journal-actions {
  grid-column: 1 / -1;
  align-self: end;
}

.members-family-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.members-billing-field {
  grid-column: 1 / -1;
}

.members-course-selection {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.members-course-selection-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.members-course-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.members-course-chip {
  position: relative;
  display: inline-flex;
}

.members-course-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.members-course-chip span {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 42, 61, 0.08);
  color: var(--ink);
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.members-course-chip input:checked + span {
  background: rgba(31, 175, 163, 0.14);
  border-color: rgba(31, 175, 163, 0.34);
  color: var(--accent);
  transform: translateY(-1px);
}

.members-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 14px;
}

.members-summary-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(245, 248, 250, 0.86);
  border: 1px solid rgba(15, 42, 61, 0.05);
}

.members-summary-card strong {
  color: var(--ink);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.members-summary-card span {
  color: #607283;
}

.members-search-wrap {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.members-search-wrap label {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #678091;
}

.members-list {
  display: grid;
  gap: 12px;
}

.members-empty-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(31, 175, 163, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(248, 251, 252, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px dashed rgba(31, 175, 163, 0.28);
}

.members-empty-card p {
  margin: 0;
  color: #627384;
  line-height: 1.6;
  max-width: 46ch;
}

.member-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 14px 30px rgba(15, 42, 61, 0.05);
}

.member-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.member-card-headline {
  display: grid;
  gap: 5px;
}

.member-card-id {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 42, 61, 0.06);
  color: #4f6270;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-card-headline p {
  margin: 0;
  color: #607283;
}

.member-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.member-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.member-card-fact {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(245, 248, 250, 0.84);
  border: 1px solid rgba(15, 42, 61, 0.05);
}

.member-card-fact span {
  color: #708392;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.member-card-fact strong {
  color: var(--ink);
  line-height: 1.5;
}

.member-course-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.member-course-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 175, 163, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.member-course-pill.is-muted {
  background: rgba(15, 42, 61, 0.06);
  color: #728391;
}

@media (max-width: 1200px) {
  .login-hero-premium-layout,
  .members-shell {
    grid-template-columns: 1fr;
  }

  .landing-visual-stage,
  .landing-visual-photo {
    min-height: 560px;
  }

  .members-editor-card {
    position: static;
  }
}

@media (max-width: 840px) {
  .login-hero-topnav {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .login-hero-navlinks {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .landing-feature-strip,
  .members-summary-grid,
  .member-card-grid,
  .members-person-grid,
  .members-address-grid,
  .members-bank-grid,
  .members-family-grid {
    grid-template-columns: 1fr;
  }

  .members-course-form {
    grid-template-columns: 1fr;
  }

  .landing-phone-card {
    width: 220px;
    right: 10px;
    bottom: 10px;
  }
}

/* Final landing and members polish */

.page-shell.landing-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 24px;
  height: 100vh;
  overflow: auto;
}

.page-shell.landing-shell .grid {
  height: auto;
  min-height: calc(100vh - 40px);
}

.page-shell.landing-shell #login-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: auto;
  width: min(420px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  z-index: 60;
}

.page-shell.landing-shell .login-card-shell {
  gap: 18px;
  padding: 26px 28px;
}

.page-shell.landing-shell #login-hero-panel {
  grid-column: 1 / -1;
  min-height: calc(100vh - 40px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 30px 80px rgba(15, 42, 61, 0.09);
}

.page-shell.landing-shell .login-hero-backdrop,
.page-shell.landing-shell #login-hero-panel::before,
.page-shell.landing-shell #login-hero-panel::after {
  display: none;
}

.page-shell.landing-shell .login-hero-card-premium {
  min-height: calc(100vh - 40px);
  padding: 26px 34px 34px;
  gap: 30px;
  background:
    radial-gradient(circle at 18% 8%, rgba(31, 175, 163, 0.06), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(242, 140, 40, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.page-shell.landing-shell .login-hero-topnav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.page-shell.landing-shell .brand-logo-hero-header {
  width: clamp(220px, 26vw, 430px);
  max-width: 100%;
}

.page-shell.landing-shell .login-hero-navlinks {
  justify-content: center;
  gap: 20px;
}

.page-shell.landing-shell .landing-nav-link {
  border-radius: 14px;
  padding: 12px 18px;
  color: #0f2a3d;
  font-weight: 600;
}

.page-shell.landing-shell .landing-nav-link:hover {
  transform: translateY(-1px);
  background: rgba(15, 42, 61, 0.05);
}

.page-shell.landing-shell .landing-nav-actions {
  gap: 12px;
}

.page-shell.landing-shell .landing-login-button,
.page-shell.landing-shell .landing-cta-button {
  min-height: 54px;
  padding-inline: 22px;
  border-radius: 16px;
}

.page-shell.landing-shell .landing-login-button {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 12px 22px rgba(15, 42, 61, 0.06);
}

.page-shell.landing-shell .landing-cta-button {
  box-shadow: 0 18px 30px rgba(31, 175, 163, 0.18);
}

.page-shell.landing-shell .login-hero-premium-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(500px, 1.18fr);
  align-items: stretch;
  gap: 34px;
}

.page-shell.landing-shell .premium-copy {
  align-self: center;
  padding: 18px 8px 10px 10px;
  gap: 24px;
}

.page-shell.landing-shell .landing-display-headline {
  display: grid;
  gap: 4px;
}

.page-shell.landing-shell .landing-display-line {
  font-size: clamp(3.3rem, 6.7vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.page-shell.landing-shell .login-hero-text {
  max-width: 18ch;
  color: #445867;
  font-size: 1.14rem;
  line-height: 1.68;
}

.page-shell.landing-shell .landing-cta-row {
  gap: 16px;
}

.page-shell.landing-shell .landing-primary-button,
.page-shell.landing-shell .landing-secondary-button {
  min-height: 64px;
  border-radius: 18px;
  padding-inline: 26px;
  font-size: 1rem;
}

.page-shell.landing-shell .landing-proof-row {
  align-items: center;
  gap: 16px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.page-shell.landing-shell .landing-proof-copy strong {
  color: #112f43;
  font-size: 1rem;
}

.page-shell.landing-shell .landing-proof-copy p {
  color: #66798a;
  max-width: 40ch;
}

.page-shell.landing-shell .landing-visual-stage {
  min-height: 670px;
}

.page-shell.landing-shell .landing-visual-photo {
  min-height: 670px;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.82) 22%, rgba(255, 255, 255, 0.32) 40%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(circle at 32% 46%, rgba(255, 251, 242, 0.88), rgba(255, 251, 242, 0) 16%),
    linear-gradient(135deg, rgba(246, 242, 234, 0.98), rgba(227, 236, 238, 0.94) 35%, rgba(24, 54, 68, 0.22) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.page-shell.landing-shell .landing-visual-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 210, 132, 0.5), rgba(255, 210, 132, 0) 14%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(15, 42, 61, 0.16));
  pointer-events: none;
}

.page-shell.landing-shell .landing-visual-photo::after {
  content: "";
  position: absolute;
  inset: auto auto -4% -6%;
  width: 60%;
  height: 44%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
  filter: blur(10px);
  pointer-events: none;
}

.page-shell.landing-shell .landing-scene-badge,
.page-shell.landing-shell .landing-visual-banner {
  display: none;
}

.page-shell.landing-shell .landing-scene-logo-wrap {
  top: 22px;
  left: 24px;
  z-index: 4;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 30px rgba(15, 42, 61, 0.12);
}

.page-shell.landing-shell .landing-scene-logo {
  width: clamp(180px, 19vw, 250px);
}

.page-shell.landing-shell .landing-visual-people {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-shell.landing-shell .people-blob {
  border-radius: 42% 42% 34% 34%;
  filter: saturate(1.08);
  box-shadow: inset 0 -14px 32px rgba(7, 20, 31, 0.16);
}

.page-shell.landing-shell .blob-a {
  right: 22%;
  bottom: -2%;
  width: 28%;
  height: 70%;
  background: linear-gradient(180deg, #6c4434 0%, #0f7d79 20%, #11696a 100%);
}

.page-shell.landing-shell .blob-b {
  right: 54%;
  bottom: 8%;
  width: 20%;
  height: 46%;
  background: linear-gradient(180deg, #b0b9c0 0%, #394a5a 100%);
}

.page-shell.landing-shell .blob-c {
  right: 39%;
  bottom: 5%;
  width: 19%;
  height: 38%;
  background: linear-gradient(180deg, #6c5a49 0%, #fff7ef 24%, #d6c7b3 100%);
}

.page-shell.landing-shell .blob-d {
  right: 4%;
  bottom: -1%;
  width: 18%;
  height: 55%;
  background: linear-gradient(180deg, #6d493a 0%, #20252d 34%, #15181d 100%);
}

.page-shell.landing-shell .blob-e {
  right: 14%;
  bottom: 10%;
  width: 13%;
  height: 30%;
  background: linear-gradient(180deg, #7b5d52 0%, #161a20 100%);
}

.page-shell.landing-shell .landing-phone-card {
  right: 12px;
  bottom: 12px;
  width: clamp(230px, 23vw, 290px);
  z-index: 3;
  border-radius: 36px;
  transform: rotate(8deg);
  box-shadow: 0 28px 42px rgba(15, 42, 61, 0.24);
}

.page-shell.landing-shell .landing-feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 4px 2px 0;
}

.page-shell.landing-shell .landing-feature-tile {
  min-height: 180px;
  padding: 24px 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.94));
  border: 1px solid rgba(15, 42, 61, 0.06);
  box-shadow: 0 20px 34px rgba(15, 42, 61, 0.06);
}

.page-shell.landing-shell .landing-feature-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(31, 175, 163, 0.08), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(31, 175, 163, 0.12);
}

.page-shell.landing-shell .landing-feature-tile strong {
  font-size: 1.1rem;
}

.page-shell.landing-shell .landing-feature-tile p {
  color: #6a7c8a;
  line-height: 1.55;
}

#member-course-selection.hidden,
#member-relationship-grid.hidden {
  display: none;
}

.members-family-grid {
  grid-template-columns: 1.7fr 1.15fr 1.7fr 1.15fr 2fr;
}

.members-form-section {
  gap: 14px;
}

.members-editor-head p,
.members-overview-head p {
  max-width: 38ch;
}

.members-editor-card {
  gap: 18px;
}

.members-overview-card {
  gap: 18px;
}

.members-form {
  gap: 16px;
}

.members-course-selection {
  gap: 10px;
}

.members-billing-field {
  display: grid;
  gap: 8px;
}

.members-card-family-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1280px) {
  .page-shell.landing-shell .login-hero-premium-layout,
  .page-shell.landing-shell .landing-feature-strip,
  .members-family-grid {
    grid-template-columns: 1fr;
  }

  .page-shell.landing-shell .landing-visual-stage,
  .page-shell.landing-shell .landing-visual-photo {
    min-height: 560px;
  }
}

@media (max-width: 840px) {
  .page-shell.landing-shell {
    padding: 14px;
  }

  .page-shell.landing-shell #login-panel {
    right: 14px;
    bottom: 14px;
    width: min(420px, calc(100vw - 28px));
  }

  .page-shell.landing-shell .login-hero-card-premium {
    padding: 22px 20px 28px;
  }

  .page-shell.landing-shell .login-hero-topnav {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .page-shell.landing-shell .login-hero-navlinks,
  .page-shell.landing-shell .landing-nav-actions,
  .page-shell.landing-shell .landing-cta-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .page-shell.landing-shell .landing-display-line {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .members-family-grid {
    grid-template-columns: 1fr;
  }
}

/* Members export and accounting foundation */

.members-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.members-insight-card,
.accounting-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 42, 61, 0.06);
  box-shadow: 0 20px 36px rgba(15, 42, 61, 0.06);
}

.members-insight-head,
.accounting-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.members-insight-head h3,
.accounting-card-head h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.members-insight-head p,
.accounting-card-head p {
  margin: 0;
  color: #66798a;
  line-height: 1.55;
  max-width: 42ch;
}

.members-export-actions,
.accounting-export-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.members-inline-filter,
.accounting-inline-filter {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.members-inline-filter label,
.accounting-inline-filter label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6c7f8f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.members-sepa-list,
.members-course-overview-list,
.accounting-mini-list,
.accounting-entry-list,
.accounting-donation-preview {
  display: grid;
  gap: 12px;
}

.members-sepa-card,
.members-course-overview-card,
.accounting-mini-item,
.accounting-entry-card,
.accounting-donation-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(245, 248, 250, 0.88);
  border: 1px solid rgba(15, 42, 61, 0.06);
}

.members-sepa-top,
.members-course-overview-top,
.accounting-entry-top,
.accounting-donation-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.members-sepa-top p,
.accounting-entry-top p,
.accounting-donation-top p {
  margin: 4px 0 0;
  color: #6a7d8d;
}

.members-sepa-amount,
.accounting-entry-amount,
.accounting-donation-total {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.members-sepa-amount strong,
.accounting-entry-amount strong,
.accounting-donation-total strong {
  font-size: 1.05rem;
}

.members-sepa-meta {
  display: grid;
  gap: 6px;
  color: #586c7c;
  font-size: 0.92rem;
}

.members-course-overview-members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#accounting-panel {
  padding: 14px;
}

.accounting-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
  gap: 16px;
  align-items: start;
}

.accounting-side,
.accounting-main {
  display: grid;
  gap: 16px;
  align-content: start;
}

.accounting-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.accounting-summary-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 251, 0.94));
  border: 1px solid rgba(15, 42, 61, 0.06);
}

.accounting-summary-card strong {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.accounting-summary-card span {
  color: #6a7d8d;
}

.accounting-form-grid,
.accounting-entry-grid,
.accounting-import-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.accounting-entry-grid-top {
  grid-template-columns: 1fr 180px 180px;
}

.accounting-import-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(245, 248, 250, 0.8);
  border: 1px solid rgba(15, 42, 61, 0.06);
}

.accounting-entry-card {
  gap: 12px;
}

.accounting-entry-amount.is-income strong {
  color: #168e84;
}

.accounting-entry-amount.is-expense strong {
  color: #c34b3d;
}

.accounting-entry-meta {
  margin: 0;
  color: #687b8c;
  font-size: 0.9rem;
}

.accounting-receipt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.accounting-donation-list {
  display: grid;
  gap: 8px;
}

.accounting-donation-line {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 42, 61, 0.06);
}

.accounting-donation-line small {
  color: #687b8c;
}

@media (max-width: 1280px) {
  .members-insights-grid,
  .accounting-shell {
    grid-template-columns: 1fr;
  }

  .accounting-entry-grid-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .members-insight-head,
  .accounting-card-head,
  .members-sepa-top,
  .members-course-overview-top,
  .accounting-entry-top,
  .accounting-donation-top {
    grid-template-columns: 1fr;
    display: grid;
  }

  .accounting-summary-grid,
  .accounting-form-grid,
  .accounting-entry-grid,
  .accounting-import-grid {
    grid-template-columns: 1fr;
  }
}

/* Final fixes for landing login visibility */
.landing-login-backdrop {
  z-index: 108;
}

.page-shell.landing-shell #login-panel {
  z-index: 120;
}

/* Members module */
#members-panel .members-shell {
  display: block;
}

.members-section-view {
  width: 100%;
}

.members-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1.35rem;
}

.members-filter-grid label,
.members-history-toolbar label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: rgba(15, 42, 61, 0.72);
}

.members-filter-grid input,
.members-filter-grid select,
.members-history-toolbar select {
  width: 100%;
}

.members-filter-actions {
  display: flex;
  align-items: end;
}

.member-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(31, 175, 163, 0.12);
  color: #0f7d75;
}

.member-status-badge.is-active {
  background: rgba(31, 175, 163, 0.12);
  color: #0f7d75;
}

.member-status-badge.is-passive {
  background: rgba(15, 42, 61, 0.08);
  color: #365161;
}

.member-status-badge.is-inactive,
.member-status-badge.is-delete {
  background: rgba(242, 140, 40, 0.14);
  color: #cb6b00;
}

.member-status-badge.is-create,
.member-status-badge.is-update,
.member-status-badge.is-status {
  background: rgba(31, 175, 163, 0.12);
  color: #0f7d75;
}

.member-history-list {
  display: grid;
  gap: 1rem;
}

.member-history-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.member-history-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 249, 0.98));
  border: 1px solid rgba(15, 42, 61, 0.08);
  border-radius: 24px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 16px 34px rgba(15, 42, 61, 0.06);
}

.member-history-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.member-history-top h3 {
  margin: 0.35rem 0 0.2rem;
}

.member-history-top p {
  margin: 0;
  color: rgba(15, 42, 61, 0.7);
}

.member-history-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.member-history-column {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 42, 61, 0.06);
}

.member-history-column > strong {
  font-size: 0.9rem;
  color: rgba(15, 42, 61, 0.7);
}

.member-history-column div {
  display: grid;
  gap: 0.1rem;
}

.member-history-column span {
  font-size: 0.78rem;
  color: rgba(15, 42, 61, 0.55);
}

.member-history-column strong {
  font-size: 0.94rem;
}

.member-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  .members-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .members-filter-grid,
  .member-card-grid,
  .member-history-compare {
    grid-template-columns: 1fr;
  }
}

/* Final landing, header and member table overrides */
.global-brand-badge {
  left: auto;
  right: 24px;
}

.page-shell.public-shell .global-brand-badge {
  left: auto;
  right: 22px;
}

.global-page-context {
  left: 96px;
  right: 228px;
  top: 14px;
}

.connection-indicator {
  top: 86px !important;
  right: 24px !important;
}

.page-shell.landing-shell {
  overflow: hidden;
}

.page-shell.landing-shell .grid {
  min-height: calc(100vh - 48px);
  align-items: stretch;
}

.page-shell.landing-shell #login-panel {
  position: fixed !important;
  left: 32px !important;
  right: auto !important;
  top: auto !important;
  bottom: 28px !important;
  width: min(500px, calc(100vw - 64px)) !important;
  max-height: calc(100vh - 56px) !important;
  overflow: visible !important;
  z-index: 130 !important;
  grid-column: auto !important;
}

.page-shell.landing-shell .login-card-shell {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.page-shell.landing-shell .login-form-stack {
  gap: 12px;
}

.page-shell.landing-shell .login-hero-panel {
  grid-column: 1 / -1 !important;
  min-height: calc(100vh - 48px) !important;
}

.page-shell.landing-shell .login-hero-card-premium {
  min-height: calc(100vh - 48px);
  padding: 28px 32px 36px !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(420px, 0.96fr) minmax(480px, 1.04fr);
  gap: 24px;
  align-items: stretch;
}

.page-shell.landing-shell .landing-visual-stage,
.page-shell.landing-shell .landing-visual-photo {
  min-height: 620px !important;
  height: 100%;
}

.page-shell.landing-shell .landing-scene-badge,
.page-shell.landing-shell .landing-visual-banner {
  display: none !important;
}

.page-shell.landing-shell .landing-phone-card {
  right: 18px !important;
  bottom: 18px !important;
}

.page-shell.landing-shell .landing-feature-strip {
  margin-top: 12px;
}

.members-list {
  display: block;
}

.members-table-wrap {
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(15, 42, 61, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 24px 42px rgba(15, 42, 61, 0.08);
}

.members-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.members-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fbfd 0%, #eef5f8 100%);
  border-bottom: 1px solid rgba(15, 42, 61, 0.08);
  color: #6a7c8a;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.members-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 42, 61, 0.06);
  color: #163447;
  white-space: nowrap;
  vertical-align: middle;
}

.members-table tbody tr:hover {
  background: rgba(31, 175, 163, 0.04);
}

.members-table tbody tr.members-table-row--editable {
  cursor: pointer;
}

.members-table tbody td:nth-child(9),
.members-table tbody td:nth-child(17),
.members-table tbody td:nth-child(18),
.members-table tbody td:nth-child(20) {
  white-space: normal;
  min-width: 180px;
}

.members-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.note-inline {
  color: #708291;
  font-size: 0.86rem;
  font-weight: 600;
}

@media (max-width: 1280px) {
  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: 1fr;
  }

  .page-shell.landing-shell .landing-visual-stage,
  .page-shell.landing-shell .landing-visual-photo {
    min-height: 520px !important;
  }
}

@media (max-width: 840px) {
  .global-brand-badge {
    right: 14px;
  }

  .global-page-context {
    left: 86px;
    right: 148px;
  }

  .page-shell.landing-shell #login-panel {
    left: 14px !important;
    width: min(460px, calc(100vw - 28px)) !important;
    bottom: 14px !important;
  }
}

/* Landing refresh and accounting module polish */
.global-page-context {
  left: 136px;
  top: 22px;
}

.connection-indicator {
  top: 104px !important;
}

.landing-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  color: #0f2a3d;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 42, 61, 0.08);
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.landing-contact-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(15, 42, 61, 0.09);
}

.page-shell.landing-shell {
  width: min(100%, 1680px);
  padding: 18px;
  overflow: hidden;
}

.page-shell.landing-shell .grid {
  min-height: calc(100vh - 36px);
}

.page-shell.landing-shell #login-panel {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  z-index: 140;
}

.page-shell.landing-shell .login-card-shell {
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px 30px 28px;
}

.page-shell.landing-shell .login-hero-card-premium {
  min-height: calc(100vh - 36px);
  padding: 34px 36px 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 14%, rgba(31, 175, 163, 0.13), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(242, 140, 40, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96));
}

.page-shell.landing-shell .login-hero-topnav {
  align-items: center;
  margin-bottom: 26px;
}

.page-shell.landing-shell .brand-logo-hero-header {
  width: min(100%, 400px);
}

.page-shell.landing-shell .login-hero-navlinks {
  gap: 26px;
}

.page-shell.landing-shell .landing-nav-link {
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  font-weight: 600;
}

.page-shell.landing-shell .landing-nav-link:hover {
  background: transparent;
  color: var(--accent);
}

.page-shell.landing-shell .landing-nav-actions {
  gap: 14px;
}

.page-shell.landing-shell .landing-login-button,
.page-shell.landing-shell .landing-secondary-button,
.page-shell.landing-shell .landing-primary-button {
  min-height: 56px;
  border-radius: 18px;
}

.page-shell.landing-shell .landing-login-button {
  min-width: 128px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 42, 61, 0.08);
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(540px, 1.08fr);
  gap: 28px;
  align-items: stretch;
}

.page-shell.landing-shell .premium-copy {
  align-content: center;
  padding: 18px 0 8px;
}

.page-shell.landing-shell .landing-display-line {
  font-size: clamp(4.1rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.page-shell.landing-shell .login-hero-text {
  max-width: 540px;
  margin-top: 22px;
  font-size: 1.22rem;
  line-height: 1.68;
}

.page-shell.landing-shell .landing-cta-row {
  margin-top: 28px;
  gap: 16px;
}

.page-shell.landing-shell .landing-proof-row {
  margin-top: 22px;
}

.page-shell.landing-shell .landing-visual-stage,
.page-shell.landing-shell .landing-visual-photo {
  min-height: 640px !important;
}

.page-shell.landing-shell .landing-visual-photo {
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.16) 28%, transparent 44%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.22) 34%, rgba(15, 42, 61, 0.04) 100%),
    linear-gradient(135deg, #eef5f8 4%, #ddeaf0 28%, #edf3f7 44%, #d4b28d 120%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 32px 60px rgba(15, 42, 61, 0.12);
}

.page-shell.landing-shell .landing-scene-badge,
.page-shell.landing-shell .landing-visual-banner {
  display: none !important;
}

.page-shell.landing-shell .landing-scene-logo-wrap {
  top: 24px;
  right: 24px;
  left: auto;
  z-index: 5;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 42px rgba(15, 42, 61, 0.14);
}

.page-shell.landing-shell .landing-scene-logo {
  width: 180px;
  max-width: 38vw;
}

.page-shell.landing-shell .landing-visual-people {
  inset: auto 0 0 0;
  height: 100%;
}

.page-shell.landing-shell .people-blob {
  filter: blur(0);
  opacity: 1;
  border-radius: 999px;
  box-shadow: 0 24px 44px rgba(15, 42, 61, 0.18);
}

.page-shell.landing-shell .blob-a {
  width: 210px;
  height: 300px;
  left: 54%;
  bottom: -24px;
  background: linear-gradient(180deg, #218f88, #0f6f6c);
}

.page-shell.landing-shell .blob-b {
  width: 148px;
  height: 238px;
  left: 38%;
  bottom: -8px;
  background: linear-gradient(180deg, #334556, #101d28);
}

.page-shell.landing-shell .blob-c {
  width: 126px;
  height: 210px;
  left: 64%;
  bottom: 18px;
  background: linear-gradient(180deg, #efe2d0, #ceb499);
}

.page-shell.landing-shell .blob-d {
  width: 120px;
  height: 220px;
  right: 9%;
  bottom: -10px;
  background: linear-gradient(180deg, #272f39, #0f1b24);
}

.page-shell.landing-shell .blob-e {
  width: 94px;
  height: 174px;
  left: 78%;
  bottom: 12px;
  background: linear-gradient(180deg, #654537, #382419);
}

.page-shell.landing-shell .landing-phone-card {
  right: 24px !important;
  bottom: -18px !important;
  width: 260px;
  border-radius: 34px;
  box-shadow: 0 36px 70px rgba(15, 42, 61, 0.24);
  z-index: 6;
}

.page-shell.landing-shell .landing-phone-screen {
  padding: 18px 16px 16px;
}

.page-shell.landing-shell .landing-feature-strip {
  margin-top: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.page-shell.landing-shell .landing-feature-tile {
  min-height: 100%;
  padding: 22px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 175, 163, 0.08);
  box-shadow: 0 20px 44px rgba(15, 42, 61, 0.07);
}

.page-shell.landing-shell .landing-feature-tile p {
  font-size: 0.98rem;
  line-height: 1.55;
}

#accounting-panel {
  padding: 12px;
}

.accounting-shell {
  display: block;
}

.accounting-section-view {
  display: grid;
  gap: 16px;
}

.accounting-entry-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accounting-filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.accounting-filter-search {
  grid-column: span 2;
}

.accounting-table-wrap {
  overflow: auto;
  border: 1px solid rgba(15, 42, 61, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.accounting-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.accounting-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 16px;
  background: #f7fbfc;
  color: #557081;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.accounting-table tbody td {
  padding: 14px 16px;
  border-top: 1px solid rgba(15, 42, 61, 0.06);
  vertical-align: top;
  white-space: nowrap;
}

.accounting-table tbody td strong {
  display: block;
  color: #0f2a3d;
}

.accounting-table tbody td small {
  display: block;
  margin-top: 4px;
  color: #6d7c89;
  white-space: normal;
}

.accounting-table tbody tr:hover {
  background: rgba(31, 175, 163, 0.04);
}

.accounting-table td.is-income {
  color: #11877f;
  font-weight: 700;
}

.accounting-table td.is-expense {
  color: #bb5843;
  font-weight: 700;
}

@media (max-width: 1280px) {
  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: 1fr;
  }

  .page-shell.landing-shell .landing-visual-stage,
  .page-shell.landing-shell .landing-visual-photo {
    min-height: 520px !important;
  }

  .page-shell.landing-shell .landing-feature-strip,
  .accounting-filters-grid,
  .accounting-entry-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounting-filter-search {
    grid-column: span 2;
  }
}

@media (max-width: 840px) {
  .global-page-context {
    left: 98px;
    top: 18px;
  }

  .page-shell.landing-shell {
    padding: 14px;
  }

  .page-shell.landing-shell .login-hero-card-premium {
    padding: 24px 18px 22px;
  }

  .page-shell.landing-shell .login-hero-topnav {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-shell.landing-shell .login-hero-navlinks,
  .page-shell.landing-shell .landing-nav-actions,
  .page-shell.landing-shell .landing-cta-row {
    flex-wrap: wrap;
  }

  .page-shell.landing-shell .landing-feature-strip,
  .accounting-filters-grid,
  .accounting-entry-meta-grid {
    grid-template-columns: 1fr;
  }

  .accounting-filter-search {
    grid-column: auto;
  }

  .page-shell.landing-shell .landing-visual-stage,
  .page-shell.landing-shell .landing-visual-photo {
    min-height: 420px !important;
  }

  .page-shell.landing-shell .landing-phone-card {
    width: 210px;
    right: 14px !important;
  }
}

/* Final landing and global header polish */
.global-menu-button,
#global-menu-button {
  top: 18px;
  left: 18px;
  z-index: 56;
}

.global-brand-badge {
  left: auto;
  right: 22px;
  top: 18px;
  padding: 10px 14px;
}

.page-shell.public-shell .global-brand-badge {
  left: auto;
  right: 22px;
}

.global-page-context {
  top: 18px;
  left: 112px;
  right: 230px;
}

.page-shell.landing-shell {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 20px;
  height: 100vh;
  overflow: hidden;
}

.page-shell.landing-shell .grid {
  min-height: calc(100vh - 40px);
}

.page-shell.landing-shell #login-panel {
  position: fixed !important;
  inset: 50% auto auto 50% !important;
  width: min(480px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  transform: translate(-50%, -50%);
  z-index: 140;
  border-radius: 30px;
  overflow: hidden;
}

.page-shell.landing-shell .login-card-shell {
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 30px 30px 28px;
}

.page-shell.landing-shell .login-hero-card-premium {
  min-height: calc(100vh - 40px);
  padding: 34px 38px 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 16%, rgba(31, 175, 163, 0.12), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(242, 140, 40, 0.12), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96));
}

.page-shell.landing-shell .login-hero-topnav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.page-shell.landing-shell .brand-logo-hero-header {
  width: min(100%, 360px);
}

.page-shell.landing-shell .login-hero-navlinks:empty {
  display: none;
}

.page-shell.landing-shell .login-hero-navlinks {
  min-height: 1px;
}

.page-shell.landing-shell .landing-nav-actions {
  justify-content: flex-end;
  gap: 14px;
}

.page-shell.landing-shell .landing-contact-link,
.page-shell.landing-shell .landing-login-button,
.page-shell.landing-shell .landing-secondary-button,
.page-shell.landing-shell .landing-primary-button {
  min-height: 56px;
  border-radius: 18px;
}

.page-shell.landing-shell .landing-login-button {
  min-width: 132px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 14px 28px rgba(15, 42, 61, 0.06);
}

.page-shell.landing-shell .login-hero-premium-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(560px, 1.08fr);
  gap: 34px;
  align-items: center;
}

.page-shell.landing-shell .premium-copy {
  align-content: center;
  padding: 10px 0 0;
}

.page-shell.landing-shell .landing-display-headline {
  display: grid;
  gap: 4px;
}

.page-shell.landing-shell .landing-display-line {
  font-size: clamp(4.4rem, 8vw, 7.2rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

.page-shell.landing-shell .login-hero-text {
  max-width: 540px;
  margin-top: 24px;
  font-size: 1.18rem;
  line-height: 1.7;
  color: #47586a;
}

.page-shell.landing-shell .landing-cta-row {
  margin-top: 30px;
  gap: 16px;
}

.page-shell.landing-shell .landing-proof-row {
  display: none;
}

.page-shell.landing-shell .landing-visual-stage {
  min-height: 580px;
}

.page-shell.landing-shell .landing-visual-photo {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.38) 28%, transparent 46%),
    linear-gradient(130deg, #edf5f9 4%, #e0ebf0 30%, #e9ecef 48%, #dbc0a0 120%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44), 0 32px 64px rgba(15, 42, 61, 0.14);
}

.page-shell.landing-shell .landing-scene-art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
  object-position: center center;
}

.page-shell.landing-shell .landing-feature-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.page-shell.landing-shell .landing-feature-tile {
  min-height: 100%;
  padding: 22px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(31, 175, 163, 0.08);
  box-shadow: 0 20px 44px rgba(15, 42, 61, 0.07);
}

.page-shell.landing-shell .landing-feature-tile p {
  font-size: 0.97rem;
  line-height: 1.56;
}

@media (max-width: 1280px) {
  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: 1fr;
  }

  .page-shell.landing-shell .landing-visual-stage,
  .page-shell.landing-shell .landing-visual-photo,
  .page-shell.landing-shell .landing-scene-art {
    min-height: 520px;
  }

  .page-shell.landing-shell .landing-feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .global-brand-badge {
    right: 14px;
    padding: 8px 12px;
  }

  .global-brand-badge img {
    width: 132px;
  }

  .global-page-context {
    left: 92px;
    right: 160px;
    top: 16px;
  }

  .page-shell.landing-shell {
    padding: 14px;
    height: auto;
    min-height: 100vh;
  }

  .page-shell.landing-shell .login-hero-card-premium {
    min-height: auto;
    padding: 24px 18px 22px;
  }

  .page-shell.landing-shell .login-hero-topnav {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-shell.landing-shell .landing-nav-actions,
  .page-shell.landing-shell .landing-cta-row {
    flex-wrap: wrap;
  }

  .page-shell.landing-shell .landing-feature-strip {
    grid-template-columns: 1fr;
  }

  .page-shell.landing-shell .landing-visual-stage,
  .page-shell.landing-shell .landing-visual-photo,
  .page-shell.landing-shell .landing-scene-art {
    min-height: 420px;
  }
}

/* Final header and accounting refinement */
.page-shell.app-shell .global-page-context {
  top: 18px !important;
  left: 158px !important;
  right: 228px !important;
  gap: 2px !important;
}

.page-shell.app-shell .global-page-context .eyebrow {
  font-size: 0.62rem !important;
  letter-spacing: 0.14em !important;
}

.page-shell.app-shell .global-page-context h2 {
  font-size: 1.34rem !important;
  line-height: 1.04 !important;
}

.page-shell.app-shell .connection-indicator {
  top: 118px !important;
  right: 22px !important;
}

.accounting-section-view {
  gap: 18px;
}

#accounting-entry-section .accounting-card {
  padding: 22px 24px;
}

#accounting-entry-section .accounting-card-head {
  align-items: end;
}

#accounting-entry-section .accounting-card-head p {
  max-width: 34ch;
}

.accounting-entry-grid,
.accounting-import-grid {
  gap: 12px;
  align-items: end;
}

.accounting-entry-meta-grid {
  grid-template-columns: repeat(3, minmax(170px, 210px)) !important;
  justify-content: start;
}

.accounting-auto-field input[readonly] {
  background: #eef3f6;
  border-color: rgba(15, 42, 61, 0.08);
  color: #667b89;
  font-weight: 700;
  box-shadow: none;
}

.accounting-entry-grid-top {
  grid-template-columns: 150px 170px minmax(340px, 1fr) !important;
}

.accounting-entry-member-field {
  min-width: 0;
}

.accounting-entry-grid-middle {
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) 190px 170px;
}

.accounting-entry-grid-bottom {
  grid-template-columns: minmax(360px, 1.4fr) 210px minmax(220px, 0.9fr);
}

#accounting-import-section .accounting-card-head p {
  max-width: 36ch;
}

@media (max-width: 1280px) {
  .page-shell.app-shell .global-page-context {
    left: 146px !important;
    right: 208px !important;
  }

  .accounting-entry-grid-middle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounting-entry-grid-bottom {
    grid-template-columns: minmax(280px, 1.2fr) 190px minmax(210px, 0.9fr);
  }
}

@media (max-width: 980px) {
  .accounting-entry-grid-top,
  .accounting-entry-grid-middle,
  .accounting-entry-grid-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 840px) {
  .page-shell.app-shell .global-page-context {
    top: 18px !important;
    left: 104px !important;
    right: 154px !important;
  }

  .page-shell.app-shell .global-page-context h2 {
    font-size: 1.18rem !important;
  }

  .page-shell.app-shell .connection-indicator {
    top: 96px !important;
    right: 12px !important;
  }

  .accounting-entry-meta-grid,
  .accounting-entry-grid-top,
  .accounting-entry-grid-middle,
  .accounting-entry-grid-bottom {
    grid-template-columns: 1fr !important;
  }
}

/* Members overview compact header */
.members-overview-topbar {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.members-overview-head {
  display: grid;
  gap: 8px;
  align-content: start;
}

.members-overview-head h3 {
  margin: 0;
  line-height: 1.1;
}

.members-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.members-overview-topbar .members-summary-grid {
  margin: 0;
}

.members-overview-topbar .members-summary-card {
  padding: 10px 12px;
  border-radius: 16px;
}

.members-overview-topbar .members-summary-card strong {
  font-size: 1.2rem;
}

@media (max-width: 1180px) {
  .members-overview-topbar {
    grid-template-columns: 1fr;
  }
}

.landing-nav-link {
  color: #23384a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.landing-nav-link:hover {
  color: var(--accent);
}

.page-shell.landing-shell .brand-logo-hero-header {
  width: min(300px, 34vw);
  height: auto;
  max-width: 100%;
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  align-items: stretch;
}

.page-shell.landing-shell .landing-visual-photo {
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  background: #dfe5ea;
}

.page-shell.landing-shell .landing-scene-art {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.page-shell.landing-shell .login-hero-copy-wrap {
  justify-content: center;
}

@media (max-width: 1080px) {
  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: 1fr;
  }
}

/* Members filtering: global + column filters */
.members-filter-grid {
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: end;
}

.members-global-search {
  max-width: 620px;
}

.members-global-search input {
  width: 100%;
}

.members-table-filter-row th {
  position: sticky;
  top: 48px;
  z-index: 3;
  background: #f3f8fb;
  border-bottom: 1px solid rgba(15, 42, 61, 0.08);
  padding: 8px 10px;
}

.members-table-filter-row input,
.members-table-filter-row select {
  width: 100%;
  min-width: 84px;
  padding: 7px 8px;
  font-size: 0.78rem;
}

/* Logo + hero final overrides */
.global-brand-badge img,
.brand-logo,
.brand-logo-login,
.brand-logo-hero,
.brand-logo-hero-header {
  object-fit: contain !important;
}

.page-shell.landing-shell .brand-logo-hero-header {
  width: min(360px, 42vw) !important;
  max-height: 88px;
}

.page-shell.landing-shell .landing-visual-photo {
  background: #f4f7fa;
}

.page-shell.landing-shell .landing-scene-art {
  object-fit: contain !important;
  object-position: center right !important;
}

/* Global elegance refresh */
:root {
  --ui-surface: rgba(255, 255, 255, 0.84);
  --ui-surface-strong: rgba(255, 255, 255, 0.94);
  --ui-border-soft: rgba(15, 42, 61, 0.12);
  --ui-shadow-soft: 0 18px 40px rgba(12, 32, 48, 0.12);
  --ui-shadow-strong: 0 26px 58px rgba(12, 32, 48, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 12%, rgba(31, 175, 163, 0.12), transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(242, 140, 40, 0.08), transparent 40%),
    linear-gradient(180deg, #edf4f8 0%, #f8fbfd 55%, #eef5f9 100%);
}

.panel {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border-soft);
  box-shadow: var(--ui-shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.panel:hover {
  box-shadow: var(--ui-shadow-strong);
}

button,
.contact-button,
.landing-login-button,
.landing-primary-button,
.landing-secondary-button {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease !important;
}

button:hover,
.contact-button:hover,
.landing-login-button:hover,
.landing-primary-button:hover,
.landing-secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(12, 32, 48, 0.16);
}

input,
select,
textarea {
  border-radius: 12px !important;
  border-color: rgba(15, 42, 61, 0.14) !important;
  background: var(--ui-surface-strong) !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(31, 175, 163, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(31, 175, 163, 0.14) !important;
}

#menu-panel .menu-nav-primary,
#menu-panel .menu-sub-link {
  border-radius: 16px;
}

#menu-panel .menu-sub-link {
  border-radius: 12px;
}

.members-table-wrap,
.accounting-card,
.calendar-editor-card,
.calendar-events-card,
.admin-section-card {
  border: 1px solid var(--ui-border-soft);
  box-shadow: var(--ui-shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-shell.landing-shell .login-hero-card {
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 28px 60px rgba(8, 25, 38, 0.2);
  overflow: hidden;
}

.page-shell.landing-shell .login-hero-topnav {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 42, 61, 0.08);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-shell.landing-shell .landing-display-line {
  letter-spacing: -0.035em;
  text-shadow: 0 6px 14px rgba(9, 28, 42, 0.08);
}

.page-shell.landing-shell .login-hero-text {
  color: #2e4758;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 48ch;
}

.page-shell.landing-shell .landing-feature-strip {
  background: rgba(255, 255, 255, 0.74);
  border-top: 1px solid rgba(15, 42, 61, 0.08);
  padding: 14px 12px;
}

.page-shell.landing-shell .landing-feature-tile {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 10px 22px rgba(15, 42, 61, 0.1);
}

.page-shell.landing-shell .brand-logo-hero-header {
  width: min(430px, 48vw) !important;
  max-height: 98px;
}

.page-shell.landing-shell .landing-visual-photo {
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(236, 243, 248, 0.96), rgba(224, 234, 241, 0.92));
  box-shadow: 0 24px 60px rgba(10, 29, 42, 0.2);
}

.page-shell.landing-shell .landing-scene-art {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Final light system theme */
:root {
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --radius-1: 12px;
  --radius-2: 18px;
  --radius-3: 26px;
}

body {
  color: #123246;
  background:
    radial-gradient(circle at 16% 12%, rgba(31, 175, 163, 0.1), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(242, 140, 40, 0.07), transparent 38%),
    linear-gradient(180deg, #f0f6fa 0%, #f8fbfd 60%, #eef5f9 100%);
}

.panel,
.members-overview-card,
.members-editor-card,
.accounting-card,
.calendar-editor-card,
.calendar-events-card,
.admin-section-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(14, 39, 57, 0.1) !important;
  box-shadow: 0 18px 40px rgba(10, 29, 42, 0.12) !important;
  border-radius: var(--radius-3) !important;
}

/* Light menu — glass rail (coordinates with #menu-panel base rules) */
#menu-panel {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.58), rgba(232, 252, 247, 0.45)) !important;
  border: 1px solid rgba(15, 42, 61, 0.12) !important;
  border-radius: 22px !important;
  box-shadow:
    16px 0 52px rgba(13, 34, 49, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.55) inset !important;
  backdrop-filter: blur(18px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.22) !important;
}

/* Keep menu hidden until explicit menu-open class */
#menu-panel:not(.menu-open) {
  transform: translate3d(calc(-100% - 20px), 0, 0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

#menu-panel.menu-open {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

#menu-panel,
#global-menu-button .menu-burger span,
button,
.panel,
.landing-feature-tile,
.members-table tbody tr {
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

#menu-panel {
  transition-duration: 520ms !important;
  will-change: transform, opacity;
}

#global-menu-button .menu-burger span {
  transition-duration: 360ms !important;
}

#menu-panel .menu-nav-primary.secondary,
#menu-panel .menu-sub-link {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #143347 !important;
  border: 1px solid rgba(15, 42, 61, 0.12) !important;
}

#menu-panel .menu-nav-primary:not(.secondary) {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(15, 42, 61, 0.12) !important;
  color: #143347 !important;
  box-shadow: none !important;
}

#menu-panel .menu-nav-primary.menu-nav-primary--logout {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(15, 42, 61, 0.12) !important;
  color: #143347 !important;
}

#menu-panel .menu-nav-primary:hover,
#menu-panel .menu-sub-link:hover {
  background: rgba(31, 175, 163, 0.14) !important;
  border-color: rgba(31, 175, 163, 0.38) !important;
}

#menu-panel .menu-nav-primary.menu-nav-primary--logout:hover {
  background: rgba(31, 175, 163, 0.1) !important;
  border-color: rgba(31, 175, 163, 0.35) !important;
}

/* Hero exact geometry + polished landing */
.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium {
  min-height: 760px !important;
  border-radius: 34px !important;
  overflow: hidden !important;
}

.page-shell.landing-shell .login-hero-topnav {
  min-height: 88px;
  padding: 16px 24px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  border-bottom: 1px solid rgba(14, 39, 57, 0.1) !important;
}

.page-shell.landing-shell .brand-logo-hero-header {
  width: min(460px, 52vw) !important;
  max-height: 106px !important;
  height: auto !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(420px, 0.95fr) minmax(560px, 1.05fr) !important;
  gap: 26px !important;
  min-height: 620px !important;
  padding: 26px 28px 16px !important;
  align-items: stretch !important;
}

.page-shell.landing-shell .login-hero-copy-wrap {
  padding-top: 24px !important;
}

.page-shell.landing-shell .landing-display-line {
  font-size: clamp(3.1rem, 5.8vw, 5.4rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.04em !important;
}

.page-shell.landing-shell .login-hero-text {
  font-size: clamp(1.04rem, 1.45vw, 1.28rem) !important;
  line-height: 1.6 !important;
  max-width: 44ch !important;
}

.page-shell.landing-shell .landing-visual-stage,
.page-shell.landing-shell .landing-visual-photo {
  min-height: 620px !important;
}

.page-shell.landing-shell .landing-visual-photo {
  border-radius: 28px !important;
  background: linear-gradient(180deg, #edf4f9, #e7f0f7) !important;
}

.page-shell.landing-shell .landing-scene-art {
  min-height: 620px !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 68% center !important;
}

.page-shell.landing-shell .landing-feature-strip {
  margin-top: 8px !important;
  padding: 14px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-top: 1px solid rgba(14, 39, 57, 0.09) !important;
}

.page-shell.landing-shell .landing-feature-tile {
  padding: 14px !important;
  border-radius: var(--radius-2) !important;
}

/* Type scale + spacing system */
h1, h2, h3 {
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2rem, 2.8vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 2vw, 2rem); }
h3 { font-size: clamp(1.12rem, 1.45vw, 1.42rem); }

.panel-heading,
.members-overview-topbar,
.accounting-card-head,
.calendar-editor-head,
.calendar-events-head {
  margin-bottom: var(--space-4);
}

/* Micro-interactions */
@keyframes fadeLift {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel,
.members-summary-card,
.members-table-wrap,
.accounting-card,
.calendar-editor-card,
.calendar-events-card,
.admin-section-card,
.landing-feature-tile {
  animation: fadeLift 360ms ease both;
}

button,
.members-table tbody tr,
.landing-feature-tile,
.accounting-entry-card,
.members-sepa-card {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.landing-feature-tile:hover,
.members-table tbody tr:hover,
.accounting-entry-card:hover,
.members-sepa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(8, 25, 38, 0.13);
}

@media (max-width: 1180px) {
  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .page-shell.landing-shell .landing-visual-stage,
  .page-shell.landing-shell .landing-visual-photo,
  .page-shell.landing-shell .landing-scene-art {
    min-height: 420px !important;
  }
}

/* Landing emergency fit fix for 100% zoom */
.page-shell.landing-shell,
.page-shell.landing-shell .grid,
.page-shell.landing-shell .login-hero-panel,
.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium {
  width: 100% !important;
  max-width: 100% !important;
}

.page-shell.landing-shell {
  overflow-x: hidden !important;
}

.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium {
  min-height: 0 !important;
}

.page-shell.landing-shell .login-hero-topnav {
  min-height: 0 !important;
  grid-template-columns: auto 1fr auto !important;
  gap: 16px !important;
  align-items: center !important;
}

.page-shell.landing-shell .brand-logo-hero-header {
  width: clamp(150px, 22vw, 280px) !important;
  max-height: 72px !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 18px !important;
  min-height: 0 !important;
  padding: 18px !important;
}

.page-shell.landing-shell .landing-display-line {
  font-size: clamp(2.4rem, 5vw, 4.3rem) !important;
}

.page-shell.landing-shell .landing-visual-stage,
.page-shell.landing-shell .landing-visual-photo,
.page-shell.landing-shell .landing-scene-art {
  min-height: 0 !important;
  height: auto !important;
}

.page-shell.landing-shell .landing-scene-art {
  aspect-ratio: 16 / 10;
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 1200px) {
  .page-shell.landing-shell .login-hero-topnav {
    grid-template-columns: 1fr !important;
    justify-items: start !important;
  }

  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Integration for updated project logo/hero assets */
.page-shell.landing-shell .brand-logo-hero-header,
.global-brand-badge img,
.brand-logo-login,
.brand-logo-hero {
  width: auto;
  max-width: 100%;
  object-fit: contain !important;
}

.page-shell.landing-shell .brand-logo-hero-header {
  height: clamp(44px, 5vw, 68px) !important;
}

.page-shell.landing-shell .landing-visual-photo {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eef4f8, #e7eff6) !important;
}

.page-shell.landing-shell .landing-scene-art {
  width: 100% !important;
  height: auto !important;
  max-height: min(68vh, 640px);
  object-fit: contain !important;
  object-position: center center !important;
}

/* Landing: larger integrated hero and module boxes */
.page-shell.landing-shell .login-hero-topnav {
  grid-template-columns: auto auto !important;
  justify-content: space-between !important;
}

.page-shell.landing-shell .login-hero-navlinks {
  display: none !important;
}

.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium {
  min-height: 840px !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(360px, 0.72fr) minmax(620px, 1.28fr) !important;
  gap: 22px !important;
  padding: 20px 22px 10px !important;
}

.page-shell.landing-shell .landing-visual-stage,
.page-shell.landing-shell .landing-visual-photo {
  min-height: 700px !important;
}

.page-shell.landing-shell .landing-scene-art {
  max-height: min(78vh, 760px) !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 24px;
}

.page-shell.landing-shell .landing-feature-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px !important;
  padding: 12px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border-radius: 20px;
}

.page-shell.landing-shell .landing-feature-tile {
  display: grid;
  gap: 6px;
  padding: 16px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 254, 0.92)) !important;
  border: 1px solid rgba(15, 42, 61, 0.1) !important;
}

.page-shell.landing-shell .landing-feature-tile strong {
  font-size: 1rem;
  color: #102f43;
}

.page-shell.landing-shell .landing-feature-tile p {
  margin: 0;
  color: #4b6577;
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 1200px) {
  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: 1fr !important;
  }

  .page-shell.landing-shell .landing-visual-stage,
  .page-shell.landing-shell .landing-visual-photo {
    min-height: 440px !important;
  }

  .page-shell.landing-shell .landing-feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell.landing-shell .landing-feature-strip {
    grid-template-columns: 1fr;
  }
}

/* Landing + login complete reboot */
.page-shell.landing-shell {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh;
  overflow-x: hidden !important;
}

.page-shell.landing-shell main.grid {
  display: block !important;
  width: 100% !important;
  max-width: min(1440px, 100vw - 24px);
  margin: 12px auto 24px;
  padding: 0 !important;
}

.page-shell.landing-shell #login-hero-panel {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: calc(100vh - 24px);
  padding: 0 !important;
}

.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium {
  width: 100% !important;
  min-height: calc(100vh - 24px) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
}

.page-shell.landing-shell .login-hero-topnav {
  display: grid !important;
  grid-template-columns: auto auto !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 18px !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 14px 18px !important;
  min-height: auto !important;
}

.page-shell.landing-shell .login-hero-copy-wrap {
  max-width: 620px;
}

.page-shell.landing-shell .landing-display-line {
  font-size: clamp(2.2rem, 5.6vw, 4.8rem) !important;
  line-height: 0.95 !important;
}

.page-shell.landing-shell .login-hero-text {
  font-size: clamp(1rem, 1.55vw, 1.18rem) !important;
}

.page-shell.landing-shell .landing-visual-stage {
  width: 100%;
}

.page-shell.landing-shell .landing-visual-photo {
  width: 100% !important;
  aspect-ratio: 16 / 10;
  min-height: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.page-shell.landing-shell .landing-scene-art {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* New innovative module flow */
.page-shell.landing-shell .landing-module-flow {
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px !important;
  padding: 12px 8px 8px !important;
  background: transparent !important;
  border-top: 0 !important;
}

.landing-module-line {
  position: absolute;
  top: 34px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(90deg, rgba(31, 175, 163, 0.25), rgba(43, 183, 240, 0.42), rgba(242, 140, 40, 0.3));
}

.landing-module-node {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 56, 78, 0.1);
  backdrop-filter: blur(4px);
}

.landing-module-node span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0f6f69;
  font-weight: 800;
  font-size: 0.75rem;
  background: rgba(31, 175, 163, 0.15);
}

.landing-module-node strong {
  font-size: 0.95rem;
}

.landing-module-node p {
  margin: 0;
  font-size: 0.86rem;
  color: #4e6678;
  line-height: 1.4;
}

/* Login modal always centered and fully visible */
.page-shell.landing-shell #login-panel {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(520px, calc(100vw - 24px)) !important;
  max-height: min(90vh, 820px) !important;
  overflow: auto !important;
  z-index: 120 !important;
}

@media (max-width: 1200px) {
  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: 1fr !important;
  }
  .page-shell.landing-shell .landing-module-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .landing-module-line {
    display: none;
  }
}

@media (max-width: 760px) {
  .page-shell.landing-shell .landing-module-flow {
    grid-template-columns: 1fr;
  }
}

/* Final landing hard reset */
.page-shell.landing-shell .login-hero-panel,
.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium {
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
}

.page-shell.landing-shell main.grid {
  width: min(1320px, calc(100vw - 24px)) !important;
  margin: 12px auto 20px !important;
}

.page-shell.landing-shell .login-hero-topnav {
  grid-template-columns: auto auto !important;
  align-items: center !important;
  padding: 12px 16px !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 16px !important;
  padding: 12px 16px 16px !important;
}

.page-shell.landing-shell .login-hero-copy-wrap {
  max-width: 560px;
}

.page-shell.landing-shell .landing-display-line {
  font-size: clamp(2rem, 4.2vw, 3.9rem) !important;
}

.page-shell.landing-shell .login-hero-text {
  font-size: clamp(0.95rem, 1.2vw, 1.08rem) !important;
  max-width: 42ch !important;
}

.page-shell.landing-shell .landing-visual-photo {
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
  max-height: 520px !important;
}

.page-shell.landing-shell .landing-scene-art {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.page-shell.landing-shell .landing-smart-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.page-shell.landing-shell .landing-smart-module {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 50, 70, 0.12);
}

.page-shell.landing-shell .landing-smart-module strong {
  font-size: 0.9rem;
}

.page-shell.landing-shell .landing-smart-module span {
  font-size: 0.8rem;
  color: #4d6678;
}

.page-shell.landing-shell #login-panel {
  width: min(460px, calc(100vw - 20px)) !important;
  max-height: 88vh !important;
}

@media (max-width: 1050px) {
  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: 1fr !important;
  }
  .page-shell.landing-shell .landing-visual-photo {
    max-height: 420px !important;
  }
}

@media (max-width: 640px) {
  .page-shell.landing-shell .landing-smart-modules {
    grid-template-columns: 1fr;
  }
}

/* Landing final innovation + fixed scale */
.page-shell.landing-shell main.grid {
  max-width: min(1240px, calc(100vw - 20px)) !important;
  margin: 10px auto 16px !important;
}

.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium,
.page-shell.landing-shell #login-hero-panel {
  min-height: auto !important;
  height: auto !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) !important;
  gap: 14px !important;
  padding: 10px 14px 14px !important;
}

.page-shell.landing-shell .landing-display-line {
  font-size: clamp(1.9rem, 4.1vw, 3.4rem) !important;
}

.page-shell.landing-shell .login-hero-text {
  font-size: clamp(0.94rem, 1.05vw, 1.02rem) !important;
}

.page-shell.landing-shell .landing-visual-photo {
  position: relative;
  aspect-ratio: 16 / 9 !important;
  max-height: 460px !important;
  border-radius: 18px !important;
  overflow: hidden;
}

.page-shell.landing-shell .landing-scene-art {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* remove previous function blocks */
.landing-smart-modules,
.landing-smart-module,
.landing-feature-strip.landing-module-flow {
  display: none !important;
}

.landing-orbit {
  position: absolute;
  /* small inset so orbit cards never get cropped */
  inset: 10px;
  pointer-events: none;
}

.landing-orbit-card {
  position: absolute;
  display: grid;
  gap: 5px;
  width: clamp(210px, 22vw, 290px);
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 254, 0.86));
  border: 1px solid rgba(15, 42, 61, 0.14);
  box-shadow: 0 14px 34px rgba(14, 39, 57, 0.18);
  backdrop-filter: blur(6px);
  overflow: hidden;
  animation: orbitFloat 4.8s ease-in-out infinite;
}

.landing-orbit-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, rgba(31, 175, 163, 0), rgba(31, 175, 163, 0.18), rgba(242, 140, 40, 0));
  transform: translateX(-30%);
  opacity: 0;
  animation: orbitShine 4.8s ease-in-out infinite;
  pointer-events: none;
}

.landing-orbit-card strong {
  font-size: 0.98rem;
  color: #0f3045;
  position: relative;
}

.landing-orbit-card span {
  font-size: 0.84rem;
  color: #496377;
  line-height: 1.35;
  position: relative;
}

.landing-orbit-card.is-a { top: 7%; left: 2%; animation-delay: 0s; }
.landing-orbit-card.is-b { top: 12%; right: 2%; animation-delay: .5s; }
.landing-orbit-card.is-c { bottom: 10%; left: 4%; animation-delay: .9s; }
.landing-orbit-card.is-d { bottom: 7%; right: 4%; animation-delay: 1.2s; }
.landing-orbit-card.is-e { top: 44%; right: 26%; animation-delay: 1.5s; }

@keyframes orbitFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(-1deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) translateX(6px) rotate(2deg) scale(1.03);
    opacity: 0.98;
  }
}

@keyframes orbitShine {
  0%, 40% { opacity: 0; }
  55% { opacity: 1; transform: translateX(30%); }
  100% { opacity: 0; transform: translateX(30%); }
}

@media (max-width: 1060px) {
  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: 1fr !important;
  }
  .page-shell.landing-shell .landing-visual-photo {
    max-height: 420px !important;
  }
  .landing-orbit-card {
    width: clamp(180px, 28vw, 240px);
    padding: 10px 12px;
  }
}

@media (max-width: 760px) {
  .page-shell.landing-shell .landing-visual-photo {
    max-height: 360px !important;
  }
  .landing-orbit-card {
    position: static;
    margin: 6px;
    max-width: none;
  }
  .landing-orbit {
    position: absolute;
    inset: auto 8px 8px 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Final stabilization: one-line info text + logo + landing fit */
.page-shell.app-shell .accounting-card-head p,
.page-shell.app-shell .members-editor-head p,
.page-shell.app-shell .members-overview-head p,
.page-shell.app-shell .calendar-editor-head p,
.page-shell.app-shell .calendar-events-head p,
.page-shell.app-shell .admin-section-head p {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 0.86rem !important;
  color: rgba(16, 47, 67, 0.66) !important;
}

.global-brand-badge img {
  height: 40px !important;
  width: auto !important;
  max-width: 230px !important;
}

.page-shell.landing-shell main.grid {
  width: min(1180px, calc(100vw - 16px)) !important;
  margin: 8px auto 14px !important;
}

.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium,
.page-shell.landing-shell #login-hero-panel {
  min-height: auto !important;
  max-height: none !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 10px 12px !important;
}

.page-shell.landing-shell .landing-visual-photo {
  max-height: 380px !important;
}

.landing-orbit-card {
  max-width: 170px !important;
  padding: 8px 10px !important;
}

.landing-orbit-card span {
  font-size: 0.7rem !important;
}

@media (max-width: 1200px) {
  .landing-orbit {
    display: none !important;
  }
}

/* Cashier final visibility safety */
.page-shell.app-shell #cashier-panel .cashier-layout {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.page-shell.app-shell #cashier-panel .products-area {
  min-height: 420px !important;
  overflow: visible !important;
}

.page-shell.app-shell #cashier-panel #cashier-products.product-grid {
  display: grid !important;
  min-height: 260px !important;
  overflow: auto !important;
  max-height: calc(100vh - 260px) !important;
  align-content: start !important;
}

/* Absolute final landing fix: no shift, no crop, no scroll */
body:has(.page-shell.landing-shell) {
  overflow: hidden !important;
}

body.landing-no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

.page-shell.landing-shell {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.page-shell.landing-shell main.grid {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 10px !important;
}

.page-shell.landing-shell #login-hero-panel,
.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium {
  width: 100% !important;
  height: calc(100vh - 20px) !important;
  min-height: calc(100vh - 20px) !important;
  max-height: calc(100vh - 20px) !important;
  overflow: hidden !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
}

.page-shell.landing-shell .login-hero-copy-wrap {
  max-width: 640px !important;
  margin: 0 auto 0 2vw !important;
}

.page-shell.landing-shell .landing-display-headline {
  max-width: 100% !important;
}

.page-shell.landing-shell .landing-display-line {
  font-size: clamp(3.2rem, 7vw, 6.2rem) !important;
}

.page-shell.landing-shell .landing-visual-photo {
  display: grid !important;
  place-items: center !important;
  height: 100% !important;
  max-height: none !important;
}

.page-shell.landing-shell .landing-scene-art {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.page-shell.landing-shell .landing-orbit,
.page-shell.landing-shell .landing-feature-strip,
.page-shell.landing-shell .landing-smart-modules {
  display: none !important;
}

/* Cashier product grid visibility fix */
.products-area {
  min-height: 420px !important;
  overflow: visible !important;
}

.product-grid {
  min-height: 260px !important;
  overflow: auto !important;
}

/* Landing final stable layout with animations */
.page-shell.landing-shell {
  position: relative !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  overflow: hidden !important;
}

.page-shell.landing-shell ~ .global-signature {
  display: none !important;
}

.page-shell.landing-shell main.grid {
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 8px !important;
}

.page-shell.landing-shell #login-hero-panel,
.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium {
  width: 100% !important;
  height: calc(100vh - 16px) !important;
  min-height: calc(100vh - 16px) !important;
  max-height: calc(100vh - 16px) !important;
  overflow: hidden !important;
  border-radius: 20px !important;
}

.page-shell.landing-shell .login-hero-topnav {
  min-height: 64px !important;
  padding: 10px 16px !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
  height: calc(100% - 64px) !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 8px 16px 12px !important;
}

.page-shell.landing-shell .login-hero-copy-wrap {
  margin-left: 1.5vw !important;
  max-width: 620px !important;
}

.page-shell.landing-shell .landing-display-line {
  font-size: clamp(3rem, 6.4vw, 5.8rem) !important;
  line-height: 0.9 !important;
}

.page-shell.landing-shell .landing-visual-photo {
  height: 100% !important;
  max-height: none !important;
  display: grid !important;
  place-items: center !important;
}

.page-shell.landing-shell .landing-scene-art {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* subtle premium animations */
@keyframes heroHeadlineIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroVisualFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes heroGlowPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(31,175,163,0); }
  50% { box-shadow: 0 16px 38px rgba(31,175,163,0.18); }
}

.page-shell.landing-shell .landing-display-headline {
  animation: heroHeadlineIn 640ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.page-shell.landing-shell .landing-visual-photo {
  animation: heroGlowPulse 4.2s ease-in-out infinite;
}

.page-shell.landing-shell .landing-scene-art {
  animation: heroVisualFloat 6.5s ease-in-out infinite;
}

@media (max-width: 1100px) {
  .page-shell.landing-shell {
    overflow-y: auto !important;
  }
  .page-shell.landing-shell main.grid {
    height: auto !important;
    min-height: 100vh !important;
  }
  .page-shell.landing-shell #login-hero-panel,
  .page-shell.landing-shell .login-hero-card,
  .page-shell.landing-shell .login-hero-card-premium {
    height: auto !important;
    max-height: none !important;
  }
  .page-shell.landing-shell .login-hero-premium-layout {
    height: auto !important;
    grid-template-columns: 1fr !important;
  }
}

/* Final polish: no ellipsis text, centered equal dashboard cards */
.page-shell.app-shell .accounting-card-head p,
.page-shell.app-shell .members-editor-head p,
.page-shell.app-shell .members-overview-head p,
.page-shell.app-shell .calendar-editor-head p,
.page-shell.app-shell .calendar-events-head p,
.page-shell.app-shell .admin-section-head p {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: initial !important;
}

.dashboard-grid {
  align-items: stretch !important;
}

.dashboard-card {
  min-height: 178px !important;
  display: grid !important;
  grid-template-rows: auto auto 1fr;
  align-content: center !important;
  align-items: center !important;
  justify-items: center !important;
  text-align: center !important;
  gap: 10px !important;
  padding: 24px 20px 20px !important;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.dashboard-card-eyebrow {
  margin: 0 !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
}

.dashboard-card strong {
  margin: 0 !important;
  font-size: 1.55rem !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
}

.dashboard-card p {
  margin: 0 !important;
  text-align: center !important;
  line-height: 1.55 !important;
  font-size: 0.98rem !important;
  color: #5f7186 !important;
}

/* Keep badge size, enlarge only logo visibility */
.global-brand-badge img {
  width: 210px !important;
  max-width: 210px !important;
  height: auto !important;
}

/* Landing fit at 100% zoom */
.page-shell.landing-shell main.grid {
  max-width: min(1160px, calc(100vw - 12px)) !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 8px 10px 12px !important;
}

.page-shell.landing-shell .landing-visual-photo {
  max-height: none !important;
}

.landing-orbit-card {
  /* override small “final polish” sizing so orbit products stay prominent */
  width: clamp(210px, 22vw, 290px) !important;
  max-width: none !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
}

/* Professional fullscreen landing */
html,
body {
  overflow-x: hidden;
}

.page-shell.landing-shell {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
}

.page-shell.landing-shell main.grid {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-shell.landing-shell #login-hero-panel,
.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium {
  width: 100% !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

.page-shell.landing-shell .login-hero-topnav {
  min-height: 64px !important;
  padding: 8px 16px !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  height: calc(100% - 64px) !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 16px 10px !important;
}

.page-shell.landing-shell .login-hero-copy-wrap {
  align-content: center !important;
}

.page-shell.landing-shell .landing-display-line {
  /* slightly reduced max to keep 100% zoom fit */
  font-size: clamp(3rem, 7.2vw, 6.3rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.045em !important;
}

.page-shell.landing-shell .login-hero-text {
  font-size: clamp(1rem, 1.45vw, 1.3rem) !important;
  line-height: 1.55 !important;
  max-width: 48ch !important;
}

.page-shell.landing-shell .landing-visual-stage,
.page-shell.landing-shell .landing-visual-photo {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}

.page-shell.landing-shell .landing-visual-photo {
  border-radius: 20px !important;
}

.page-shell.landing-shell .landing-scene-art {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.page-shell.landing-shell #login-panel {
  max-height: 86vh !important;
}

@media (max-width: 1100px) {
  .page-shell.landing-shell {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
  }
  .page-shell.landing-shell main.grid {
    height: auto !important;
    min-height: 100vh !important;
  }
  .page-shell.landing-shell .login-hero-card,
  .page-shell.landing-shell .login-hero-card-premium,
  .page-shell.landing-shell #login-hero-panel {
    height: auto !important;
    min-height: calc(100vh - 18px) !important;
    max-height: none !important;
  }
  .page-shell.landing-shell .login-hero-premium-layout {
    height: auto !important;
    grid-template-columns: 1fr !important;
  }
  .landing-orbit {
    display: none !important;
  }
}

/* Global: remove duplicated big in-panel page titles */
.page-shell.app-shell .panel-heading {
  margin-bottom: 8px !important;
  padding-bottom: 0 !important;
  gap: 8px !important;
}

.page-shell.app-shell .panel:not(#menu-panel) > .panel-heading > div:first-child {
  display: none !important;
}

.page-shell.app-shell .panel:not(#menu-panel) > .panel-heading {
  justify-content: flex-end !important;
  margin-bottom: 6px !important;
}

/* Top-right logo: keep badge size, grow only logo */
.global-brand-badge {
  padding: 10px 16px !important;
  min-height: 52px !important;
  width: auto !important;
}

.global-brand-badge img {
  width: 190px !important;
  height: auto !important;
  max-width: 190px !important;
  object-fit: contain !important;
}

/* Hard hide duplicate internal page title blocks */
.page-shell.app-shell .panel:not(#menu-panel) > .panel-heading > div:first-child,
.page-shell.app-shell .accounting-card-head > div:first-child,
.page-shell.app-shell .members-editor-head > div:first-child,
.page-shell.app-shell .members-overview-head > div:first-child,
.page-shell.app-shell .calendar-editor-head > div:first-child,
.page-shell.app-shell .calendar-events-head > div:first-child,
.page-shell.app-shell .admin-section-head > div:first-child {
  display: none !important;
}

.page-shell.app-shell .accounting-card-head,
.page-shell.app-shell .members-editor-head,
.page-shell.app-shell .members-overview-head,
.page-shell.app-shell .calendar-editor-head,
.page-shell.app-shell .calendar-events-head,
.page-shell.app-shell .admin-section-head {
  min-height: 0 !important;
  margin-bottom: 8px !important;
}

/* Logo size normalization across app */
.global-brand-badge img {
  height: 34px !important;
  width: auto !important;
  max-width: 180px !important;
}

.brand-logo-login {
  height: 44px !important;
  width: auto !important;
}

.page-shell.landing-shell .brand-logo-hero-header {
  height: clamp(38px, 4.2vw, 54px) !important;
  width: auto !important;
  max-width: min(320px, 42vw) !important;
}

.brand-logo-hero {
  height: 44px !important;
  width: auto !important;
}

/* Landing v2: cleaner digital modules + stable scale */
.page-shell.landing-shell .login-hero-backdrop {
  display: none !important;
}

.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium {
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  min-height: auto !important;
  align-items: center !important;
}

.page-shell.landing-shell .landing-visual-stage {
  width: 100%;
}

.page-shell.landing-shell .landing-visual-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
  border-radius: 24px !important;
  overflow: hidden;
  background: linear-gradient(160deg, #e9f3f9, #dfeef8) !important;
}

.page-shell.landing-shell .landing-scene-art {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.page-shell.landing-shell .landing-feature-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px !important;
  background: transparent !important;
  border-top: 0 !important;
}

.page-shell.landing-shell .landing-feature-tile {
  position: relative;
  padding: 16px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 254, 0.92)) !important;
  border: 1px solid rgba(28, 78, 108, 0.12) !important;
  box-shadow: 0 14px 28px rgba(20, 56, 78, 0.1) !important;
  overflow: hidden;
}

.page-shell.landing-shell .landing-feature-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1fafa3, #2bb7f0, #f28c28);
  opacity: 0.85;
}

.landing-feature-icon {
  display: none !important;
}

.landing-feature-chip {
  display: inline-flex;
  margin-top: 8px;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31, 175, 163, 0.12);
  color: #0f6f69;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@keyframes moduleFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.page-shell.landing-shell .landing-feature-tile:hover {
  animation: moduleFloat 1.6s ease-in-out infinite;
}

@media (max-width: 1200px) {
  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: 1fr !important;
  }
  .page-shell.landing-shell .landing-feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell.landing-shell .landing-feature-strip {
    grid-template-columns: 1fr;
  }
}

/* Re-enable Hero “module products” (landing-orbit) */
.page-shell.landing-shell .landing-orbit {
  display: block !important;
}
.page-shell.landing-shell .landing-orbit-card {
  display: grid !important;
}

@media (max-width: 1200px) {
  /* override the earlier hide rule so orbit products stay visible */
  .page-shell.landing-shell .landing-orbit {
    display: block !important;
  }
}

/* Dashboard refresh: richer cards and consistent formatting */
#dashboard-panel {
  background:
    radial-gradient(circle at 6% 8%, rgba(31, 175, 163, 0.09), rgba(31, 175, 163, 0) 34%),
    radial-gradient(circle at 94% 8%, rgba(242, 140, 40, 0.08), rgba(242, 140, 40, 0) 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 252, 0.95)) !important;
}

.dashboard-welcome {
  margin-bottom: 22px !important;
}

.dashboard-grid {
  gap: 18px !important;
  align-items: stretch !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}

.dashboard-card {
  position: relative;
  min-height: 206px !important;
  grid-template-rows: auto auto 1fr auto !important;
  gap: 12px !important;
  padding: 22px 20px 18px !important;
  border-radius: 22px !important;
  justify-items: start !important;
  align-items: start !important;
  text-align: left !important;
  border: 1px solid rgba(22, 56, 78, 0.09) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 253, 0.95)),
    linear-gradient(135deg, rgba(31, 175, 163, 0.08), rgba(242, 140, 40, 0.04)) !important;
  box-shadow: 0 18px 34px rgba(13, 38, 56, 0.09) !important;
  overflow: hidden;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(31, 175, 163, 0.85), rgba(43, 183, 240, 0.75), rgba(242, 140, 40, 0.8));
}

.dashboard-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 42px rgba(13, 38, 56, 0.13) !important;
}

.dashboard-card-headline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.dashboard-card-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  font-size: 0.95rem;
  background: rgba(31, 175, 163, 0.12);
}

.dashboard-card-eyebrow {
  margin: 0 !important;
  text-align: left !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.15em !important;
}

.dashboard-card strong {
  margin: 0 !important;
  text-align: left !important;
  font-size: 1.42rem !important;
  line-height: 1.12 !important;
}

.dashboard-card p {
  margin: 0 !important;
  text-align: left !important;
  font-size: 0.95rem !important;
  line-height: 1.52 !important;
  color: #5f7186 !important;
}

.dashboard-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0f7b73;
}

.dashboard-card-link::after {
  content: "→";
}

@media (max-width: 720px) {
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .dashboard-card {
    min-height: 182px !important;
    padding: 18px 16px !important;
  }
}

/* Final landing fit + innovative module orbit */
.page-shell.landing-shell,
.page-shell.landing-shell main.grid,
.page-shell.landing-shell #login-hero-panel,
.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
}

.page-shell.landing-shell {
  overflow: hidden !important;
}

.page-shell.landing-shell main.grid {
  padding: 0 !important;
}

.page-shell.landing-shell .login-hero-topnav {
  min-height: 62px !important;
  padding: 8px 14px !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  height: calc(100% - 62px) !important;
  padding: 8px 14px !important;
  gap: 10px !important;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr) !important;
}

.page-shell.landing-shell .landing-display-line {
  font-size: clamp(2.6rem, 6.5vw, 5.3rem) !important;
  line-height: 0.9 !important;
}

.page-shell.landing-shell .login-hero-text {
  font-size: clamp(0.95rem, 1.15vw, 1.12rem) !important;
  margin: 8px 0 0 !important;
}

.page-shell.landing-shell .landing-cta-row {
  margin-top: 10px !important;
}

.page-shell.landing-shell .landing-visual-photo {
  height: 100% !important;
  border-radius: 18px !important;
}

.page-shell.landing-shell .landing-orbit {
  inset: 14px !important;
  display: block !important;
}

.page-shell.landing-shell .landing-orbit-card {
  display: grid !important;
  place-items: center !important;
  width: clamp(150px, 15vw, 210px) !important;
  min-height: 58px !important;
  padding: 12px 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  background:
    linear-gradient(135deg, rgba(31, 175, 163, 0.9), rgba(43, 183, 240, 0.88) 45%, rgba(242, 140, 40, 0.9)) !important;
  box-shadow: 0 16px 32px rgba(13, 38, 56, 0.22) !important;
  backdrop-filter: blur(8px);
  animation: orbitFloat 5.2s ease-in-out infinite !important;
}

.page-shell.landing-shell .landing-orbit-card::before,
.page-shell.landing-shell .landing-orbit-card span {
  display: none !important;
}

.page-shell.landing-shell .landing-orbit-card strong {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.01em !important;
  text-align: center !important;
}

.page-shell.landing-shell .landing-orbit-card.is-a { top: 4%; left: 1%; animation-delay: 0s; }
.page-shell.landing-shell .landing-orbit-card.is-b { top: 6%; right: 2%; animation-delay: .3s; }
.page-shell.landing-shell .landing-orbit-card.is-c { top: 28%; left: 2%; animation-delay: .6s; }
.page-shell.landing-shell .landing-orbit-card.is-d { top: 30%; right: 1%; animation-delay: .9s; }
.page-shell.landing-shell .landing-orbit-card.is-e { top: 49%; left: 11%; animation-delay: 1.2s; }
.page-shell.landing-shell .landing-orbit-card.is-f { top: 50%; right: 11%; animation-delay: 1.5s; }
.page-shell.landing-shell .landing-orbit-card.is-g { bottom: 22%; left: 2%; animation-delay: 1.8s; }
.page-shell.landing-shell .landing-orbit-card.is-h { bottom: 20%; right: 2%; animation-delay: 2.1s; }
.page-shell.landing-shell .landing-orbit-card.is-i { bottom: 4%; left: 50%; transform: translateX(-50%); animation-delay: 2.4s; }

@media (max-width: 1200px) {
  .page-shell.landing-shell,
  .page-shell.landing-shell main.grid,
  .page-shell.landing-shell #login-hero-panel,
  .page-shell.landing-shell .login-hero-card,
  .page-shell.landing-shell .login-hero-card-premium {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
  }

  .page-shell.landing-shell .login-hero-premium-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .page-shell.landing-shell .landing-orbit-card {
    width: clamp(136px, 17vw, 184px) !important;
    min-height: 50px !important;
    padding: 10px 12px !important;
  }

  .page-shell.landing-shell .landing-orbit-card strong {
    font-size: 0.8rem !important;
  }
}

/* Landing hotfix: no scroll at 100%, softer/smaller orbit cards */
html:has(.page-shell.landing-shell),
body:has(.page-shell.landing-shell),
body.landing-no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

.page-shell.landing-shell {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

.page-shell.landing-shell main.grid {
  width: 100% !important;
  max-width: min(1320px, 100vw) !important;
  margin: 0 auto !important;
  padding: 6px !important;
}

.page-shell.landing-shell .login-hero-card,
.page-shell.landing-shell .login-hero-card-premium,
.page-shell.landing-shell #login-hero-panel {
  width: min(1310px, calc(100vw - 12px)) !important;
  max-width: min(1310px, calc(100vw - 12px)) !important;
  margin: 0 auto !important;
  border-radius: 18px !important;
}

.page-shell.landing-shell .login-hero-premium-layout {
  height: calc(100% - 60px) !important;
  padding: 6px 12px !important;
  gap: 8px !important;
}

.page-shell.landing-shell .login-hero-topnav {
  min-height: 60px !important;
  padding: 6px 12px !important;
}

.page-shell.landing-shell .landing-visual-photo {
  border-radius: 16px !important;
}

.page-shell.landing-shell .landing-orbit {
  inset: 12px !important;
}

.page-shell.landing-shell .landing-orbit-card {
  width: clamp(170px, 14vw, 170px) !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(24, 77, 106, 0.16) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 250, 253, 0.72)) !important;
  box-shadow: 0 8px 18px rgba(13, 38, 56, 0.08) !important;
  backdrop-filter: blur(6px);
  animation: orbitTraverse 11s cubic-bezier(0.22, 0.61, 0.36, 1) infinite !important;
  will-change: transform;
}

.page-shell.landing-shell .landing-orbit-card strong {
  font-size: 0.76rem !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
  color: #20465f !important;
  white-space: nowrap !important;
}

.page-shell.landing-shell .landing-orbit-card.is-a { top: 5%; left: 2%; animation-delay: 0s !important; }
.page-shell.landing-shell .landing-orbit-card.is-b { top: 8%; right: 2%; animation-delay: .8s !important; }
.page-shell.landing-shell .landing-orbit-card.is-c { top: 27%; left: 3%; animation-delay: 1.4s !important; }
.page-shell.landing-shell .landing-orbit-card.is-d { top: 30%; right: 3%; animation-delay: 2.1s !important; }
.page-shell.landing-shell .landing-orbit-card.is-e { top: 47%; left: 12%; animation-delay: 2.8s !important; }
.page-shell.landing-shell .landing-orbit-card.is-f { top: 49%; right: 12%; animation-delay: 3.5s !important; }
.page-shell.landing-shell .landing-orbit-card.is-g { bottom: 21%; left: 3%; animation-delay: 4.2s !important; }
.page-shell.landing-shell .landing-orbit-card.is-h { bottom: 19%; right: 3%; animation-delay: 4.9s !important; }
.page-shell.landing-shell .landing-orbit-card.is-i { bottom: 6%; left: 44%; animation-delay: 5.6s !important; }

@keyframes orbitTraverse {
  0% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  25% { transform: translate3d(14px, -8px, 0) rotate(1deg); }
  50% { transform: translate3d(-10px, 6px, 0) rotate(-1deg); }
  75% { transform: translate3d(12px, 8px, 0) rotate(1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
}

/* Club request modal */
.page-shell.landing-shell #club-request-panel {
  position: fixed;
  top: 50% !important;
  left: 32px !important;
  z-index: 120;
  width: min(440px, calc(100vw - 64px)) !important;
  max-height: calc(100vh - 64px) !important;
  transform: translateY(-50%) !important;
  overflow: auto;
  border-radius: 26px;
  box-shadow: 0 36px 80px rgba(8, 20, 30, 0.2);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 42, 61, 0.08);
}

.club-request-shell {
  gap: 14px !important;
  padding: 22px 22px 20px !important;
}

.club-request-form {
  gap: 8px;
}

.club-request-form textarea {
  min-height: 78px;
  resize: vertical;
}

.club-request-modules {
  border: 1px solid rgba(18, 56, 78, 0.12);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  padding: 10px 12px 8px;
  margin: 4px 0 2px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.club-request-modules legend {
  padding: 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #2b556f;
  font-weight: 700;
}

.club-request-modules label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: #355c74;
}

.club-request-modules input[type="checkbox"] {
  width: 15px;
  height: 15px;
}

.page-shell.landing-shell .landing-login-button {
  min-height: 42px !important;
  padding: 0 16px !important;
  font-size: 0.88rem !important;
}

@media (max-width: 900px) {
  .page-shell.landing-shell #club-request-panel {
    left: 50% !important;
    width: min(440px, calc(100vw - 20px)) !important;
    transform: translate(-50%, -50%) !important;
  }
  .club-request-modules {
    grid-template-columns: 1fr;
  }
}

/* Lizenz-Hinweis (nicht blockierend) */
.license-expiry-banner {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(920px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 243, 224, 0.96);
  border: 1px solid rgba(242, 140, 40, 0.35);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.35;
  box-shadow: 0 12px 28px rgba(15, 42, 61, 0.08);
}

.mono-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.4;
  width: 100%;
}

.field-hint {
  margin: -6px 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.field-hint code {
  font-size: 0.78rem;
}

.club-role-fieldset {
  border: 1px solid rgba(15, 42, 61, 0.1);
  border-radius: 14px;
  padding: 12px 14px 10px;
  margin: 0;
}

.club-role-fieldset-heading {
  margin: 0 0 10px;
  padding: 0 6px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.25;
}

.club-role-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 0.9rem;
}

/* Verein: Team — Tabs, Unterseiten, Modal */
#club-users-panel.panel {
  padding-top: 12px;
}

.club-team-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.club-team-tab {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid rgba(15, 42, 61, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.club-team-tab:hover {
  border-color: rgba(31, 175, 163, 0.35);
  background: rgba(255, 255, 255, 0.85);
}

.club-team-tab.is-active {
  border-color: rgba(31, 175, 163, 0.45);
  background: rgba(31, 175, 163, 0.12);
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(15, 42, 61, 0.06);
}

.club-license-note-inline {
  margin: 0 0 12px;
  font-size: 0.85rem;
}

.club-team-toolbar {
  margin-bottom: 12px;
}

.club-team-user-list {
  gap: 10px;
}

.club-team-roles-lead {
  margin: 0 0 12px;
}

.club-team-roles-matrix-host {
  margin-top: 4px;
}

.club-team-roles-matrix-scroll {
  max-height: min(62vh, 720px);
}

.club-team-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
}

.club-team-modal.hidden {
  display: none;
}

.club-team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 32, 0.45);
  backdrop-filter: blur(4px);
}

.club-team-modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  border-radius: 20px;
  padding: 18px 20px 16px;
  background: rgba(252, 251, 248, 0.98);
  border: 1px solid rgba(15, 42, 61, 0.08);
  box-shadow: 0 28px 80px rgba(12, 22, 32, 0.22);
}

.club-team-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.club-team-modal-top h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.club-team-modal-actions {
  margin-top: 4px;
}

/* Landing: bei 100 % Zoom ohne seitliche Scrollbalken nutzbar */
.page-shell.landing-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  height: 100dvh;
  height: 100vh;
  max-height: 100dvh;
  max-height: 100vh;
  overflow: hidden;
}

.page-shell.landing-shell .login-hero-card {
  min-height: 0;
}

.page-shell.landing-shell .login-hero-premium-layout {
  min-height: 0;
}

.page-shell.landing-shell .landing-visual-stage {
  min-height: clamp(160px, 28dvh, 480px);
}

.page-shell.landing-shell .landing-visual-photo {
  min-height: clamp(160px, 28dvh, 480px);
}

@media (max-height: 780px) {
  .page-shell.landing-shell .login-hero-premium-layout {
    gap: clamp(18px, 3vw, 36px);
  }
  .page-shell.landing-shell .premium-copy .landing-display-line {
    font-size: clamp(1.35rem, 4vw, 2.4rem);
  }
}

/* Lizenz-Formular (Superadmin) */
.club-license-fieldset {
  border: 1px solid rgba(15, 42, 61, 0.12);
  border-radius: 16px;
  padding: 16px 18px 14px;
  margin: 12px 0 8px;
  background: rgba(255, 255, 255, 0.65);
}

.club-license-fieldset legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.license-block {
  margin-bottom: 18px;
}

.license-block:last-child {
  margin-bottom: 0;
}

.license-module-grid {
  display: grid;
  gap: 10px;
}

.license-module-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(140px, 1fr);
  gap: 10px 14px;
  align-items: center;
  font-size: 0.9rem;
}

.license-module-row > span:first-child {
  font-weight: 600;
  color: rgba(15, 42, 61, 0.88);
}

.checkbox-row.tight {
  margin: 0;
  font-size: 0.85rem;
}

.license-number-input {
  max-width: 120px;
}

.license-roles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(15, 42, 61, 0.14);
  background: rgba(255, 255, 255, 0.75);
}

.license-role-check {
  margin: 0;
}

.license-role-caps-grid {
  display: grid;
  gap: 8px;
}

.license-role-cap-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(100px, 140px);
  gap: 12px;
  align-items: center;
  font-size: 0.88rem;
}

.license-role-cap-row label {
  margin: 0;
}

@media (max-width: 720px) {
  .license-module-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.club-team-roles-matrix {
  min-width: min(100%, 920px);
}

.club-team-roles-empty {
  margin-top: 8px;
}
