@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700,800&display=swap');

/* ══════════════════════════════════════════════════════════════
   KLUBOS — Design System
   Light mode · warm business SaaS · 2026 product aesthetic
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg:         #F3F1F0;
  --surface:    #FFFFFF;
  --surface-2:  #ECE8E5;
  --fg:         #1B1816;
  --fg-muted:   #6A625E;
  --fg-dim:     #A29A96;
  --border:     #DED8D4;
  --accent:     #BB5522;
  --accent-glow: 0 10px 28px rgba(187, 85, 34, 0.18);
  --accent-hover: #9F461B;
  --danger:     #BA3F36;
  --warning:    #A8761D;
  --success:    #3E7A56;

  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;

  --font:       'Satoshi', 'Avenir Next', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  --sidebar-w:  240px;
  --topbar-h:   56px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; color: inherit; }

/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════════ */

.h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.body-sm { font-size: 0.875rem; color: var(--fg-muted); }
.body-xs { font-size: 0.75rem; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.mono { font-family: var(--font-mono); }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  border: 0.5px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 30px rgba(187, 85, 34, 0.2);
}

.btn-ghost {
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--fg-muted);
}
.btn-ghost:hover {
  border-color: #B8C5CE;
  color: var(--fg);
  background: #FFFFFF;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius);
}
.landing-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease, gap 0.2s ease;
}
.landing-text-link:hover { color: var(--accent-hover); gap: 0.65rem; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(187, 85, 34, 0.34);
  outline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════════
   INPUTS
   ══════════════════════════════════════════════════════════════ */

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}
.input::placeholder { color: var(--fg-dim); }
.input:focus { border-color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   CARD
   ══════════════════════════════════════════════════════════════ */

.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.card-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  color: var(--accent);
  flex-shrink: 0;
}
.card-icon svg { width: 1rem; height: 1rem; }

/* ══════════════════════════════════════════════════════════════
   LAYOUT — AUTH / LANDING
   ══════════════════════════════════════════════════════════════ */

.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}
.auth-card .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.auth-card .logo-mark {
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
}
.auth-card .logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-logo-image {
  display: block;
  width: auto;
  object-fit: contain;
  flex: none;
  filter: none;
}
.auth-logo-image {
  height: 2rem;
  max-width: 7.75rem;
}

/* ══════════════════════════════════════════════════════════════
   LOGIN — split workspace entry
   ══════════════════════════════════════════════════════════════ */

.auth-login-page {
  display: flow-root;
  background: #e9e5e2;
  min-height: var(--login-vh, 100vh);
  height: var(--login-vh, 100vh);
  overflow-x: hidden;
  overflow-y: hidden;
}

.login-shell {
  width: min(1380px, calc(100% - 3rem));
  height: min(860px, calc(var(--login-vh, 100vh) - 3rem));
  max-height: calc(var(--login-vh, 100vh) - 3rem);
  min-height: 0;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(420px, 0.92fr) minmax(540px, 1.08fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.45rem;
  box-shadow: 0 24px 70px rgba(55, 42, 34, 0.12);
}

.login-form-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 4.25rem) clamp(2rem, 5vw, 5.5rem) 1.75rem;
  background: var(--surface);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}

.auth-login-logo {
  height: 2.05rem;
  width: auto;
  max-width: 9.25rem;
}

.login-form-wrap {
  width: min(100%, 28rem);
  margin: auto;
  padding: 1.5rem 0;
}

.login-intro { margin-bottom: 1.5rem; }
.login-eyebrow,
.login-product-kicker {
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.login-intro h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.login-intro > p:last-child {
  max-width: 30rem;
  color: var(--fg-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.login-form { display: grid; gap: 0.9rem; }
.login-form .form-group { display: grid; gap: 0.45rem; }
.login-form .form-label { font-size: 0.82rem; font-weight: 600; }
.login-input {
  min-height: 3rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-color: #d8d2ce;
  border-radius: 0.8rem;
  font-size: 0.95rem;
}
.login-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(187, 85, 34, 0.1);
}
.login-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg-muted);
  font-size: 0.82rem;
  cursor: pointer;
}
.login-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}
.login-forgot-password {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
}
.login-forgot-password:hover { color: var(--accent-hover); }
.login-submit {
  width: 100%;
  min-height: 3.4rem;
  margin-top: 0.25rem;
  border-radius: 0.8rem;
  font-size: 0.96rem;
}
.login-signup-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1rem;
  color: var(--fg-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}
.login-signup-note a {
  color: var(--accent);
  font-weight: 600;
}
.login-signup-note a:hover { color: var(--accent-hover); }
.login-footer-note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--fg-dim);
  font-size: 0.72rem;
}
.login-footer-note a:hover { color: var(--fg); }

.login-product-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(1.5rem, 3.2vw, 3rem);
  background: var(--accent);
  color: #fff;
  isolation: isolate;
}
.login-product-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.14;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.login-product-panel::before,
.login-product-panel::after {
  content: '';
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}
.login-product-panel::before {
  width: 34rem;
  height: 34rem;
  top: -13rem;
  right: -10rem;
}
.login-product-panel::after {
  width: 28rem;
  height: 28rem;
  bottom: -13rem;
  left: -10rem;
}
.login-product-copy { position: relative; max-width: 36rem; }
.login-product-kicker { color: rgba(255,255,255,0.72); }
.login-product-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.25vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.login-heading-line { display: block; white-space: nowrap; }
.login-product-copy > p:last-child {
  max-width: 31rem;
  color: rgba(255,255,255,0.78);
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  line-height: 1.55;
}

.login-product-mockup {
  position: relative;
  width: min(100%, 40rem);
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 0.95rem;
  background: #f8f7f6;
  box-shadow: 0 24px 50px rgba(83, 30, 11, 0.2), 0 1px 0 rgba(255,255,255,0.8) inset;
  color: var(--fg);
  transform: rotate(-1.2deg);
}
.mockup-window-bar {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  height: 2rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid #e7e1dd;
  background: #fff;
}
.mockup-dot { width: 0.38rem; height: 0.38rem; border-radius: 999px; background: #d4ccc6; }
.mockup-window-title { margin-left: 0.55rem; color: #8d8580; font-size: 0.55rem; letter-spacing: 0.02em; }
.mockup-body { display: flex; min-height: 14.5rem; }
.mockup-sidebar { width: 2.9rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 0.7rem 0.35rem; background: #f0ece9; }
.mockup-sidebar-brand { width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border-radius: 0.35rem; background: var(--accent); color: #fff; font-size: 0.55rem; font-weight: 700; }
.mockup-nav-line { width: 0.95rem; height: 0.45rem; border-radius: 0.2rem; background: #d2c9c4; }
.mockup-nav-line.is-active { background: #bd7d5d; }
.mockup-content { min-width: 0; flex: 1; padding: 1.05rem; }
.mockup-content-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }
.mockup-content-head strong { display: block; margin-top: 0.15rem; font-size: 0.86rem; letter-spacing: -0.03em; }
.mockup-label { display: block; color: #9c938e; font-size: 0.52rem; letter-spacing: 0.04em; text-transform: uppercase; }
.mockup-avatar { width: 1.55rem; height: 1.55rem; display: grid; place-items: center; border-radius: 50%; background: #e5c9bb; color: var(--accent); font-size: 0.55rem; font-weight: 700; }
.mockup-metrics { display: grid; grid-template-columns: 1.5fr 0.75fr 0.75fr; gap: 0.55rem; }
.mockup-card { min-width: 0; padding: 0.7rem; border: 1px solid #e8e2de; border-radius: 0.55rem; background: #fff; }
.mockup-card-wide { background: #f6ebe5; border-color: #efd8cb; }
.mockup-card strong { display: block; margin: 0.36rem 0; font-size: 0.64rem; letter-spacing: -0.02em; }
.mockup-card small { display: block; color: #a49b96; font-size: 0.5rem; line-height: 1.35; }
.mockup-number { color: var(--accent); font-size: 1.1rem !important; }
.mockup-progress { height: 0.24rem; margin: 0.5rem 0; overflow: hidden; border-radius: 999px; background: #e3cdc0; }
.mockup-progress span { display: block; width: 64%; height: 100%; border-radius: inherit; background: var(--accent); }
.mockup-bottom-row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0.55rem; margin-top: 0.55rem; }
.mockup-list-card { display: grid; gap: 0.45rem; }
.mockup-list-item { display: flex; align-items: center; gap: 0.38rem; color: #6c625d; font-size: 0.55rem; }
.mockup-list-item i { width: 0.34rem; height: 0.34rem; border-radius: 0.1rem; background: #d4a58f; }
.mockup-list-item b { margin-left: auto; color: #b3a9a3; font-size: 0.75rem; font-weight: 400; }
.mockup-ai-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 7rem; padding: 0.7rem; border-radius: 0.55rem; background: #2b2421; color: #fff; }
.mockup-ai-card .mockup-label { color: rgba(255,255,255,0.55); }
.mockup-ai-card strong { max-width: 8.5rem; margin-top: 0.35rem; font-size: 0.7rem; line-height: 1.2; }
.mockup-ai-orb { width: 1.55rem; height: 1.55rem; display: grid; place-items: center; margin-bottom: auto; border-radius: 0.45rem; background: var(--accent); color: #fff; font-size: 0.8rem; }

@media (max-width: 1100px) and (min-width: 861px) {
  .login-shell {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
  .login-form-panel { padding-inline: 3rem; }
  .login-product-panel { padding-inline: 2.25rem; }
  .login-product-copy h2 { font-size: clamp(1.85rem, 3.25vw, 2.75rem); }
  .login-product-mockup { margin-top: 2.5rem; }
}

@media (max-width: 860px) {
  .auth-login-page {
    height: auto;
    min-height: 0;
    overflow-y: auto;
  }
  .login-shell {
    width: min(640px, calc(100% - 2rem));
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr;
    margin: 1rem auto;
  }
  .login-form-panel { min-height: 42rem; }
  .login-form-wrap { margin: auto; padding-block: 3.5rem; }
  .login-product-panel { display: none; }
}

@media (max-width: 480px) {
  .auth-login-page { background: var(--surface); }
  .login-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .login-form-panel { min-height: 0; padding: 1.5rem 1.25rem 1.25rem; }
  .auth-login-logo { height: 2rem; max-width: 9rem; }
  .login-form-wrap { margin: 2.75rem auto 2.5rem; padding: 0; }
  .login-intro { margin-bottom: 1.85rem; }
  .login-intro h1 { font-size: 2.35rem; }
  .login-intro > p:last-child { font-size: 0.9rem; }
  .login-footer-note { padding-top: 0.25rem; }
}

@media (max-width: 360px) {
  .login-form-panel { padding-inline: 1rem; }
  .login-intro h1 { font-size: 2.1rem; }
  .mockup-sidebar { width: 2.35rem; }
  .mockup-content-head strong { font-size: 0.75rem; }
  .mockup-card { padding: 0.55rem; }
  .mockup-card strong { font-size: 0.58rem; }
  .mockup-ai-card strong { font-size: 0.62rem; }
}
.sidebar-logo-image {
  height: 1.35rem;
  max-width: 6.75rem;
}
.landing-logo-image {
  height: 1.25rem;
  max-width: 7.1rem;
}
.landing-footer-logo-image {
  height: 1.2rem;
  max-width: 6.5rem;
}
.vs-logo-image {
  height: 1rem;
  max-width: 5.5rem;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR — Dashboard
   ══════════════════════════════════════════════════════════════ */

.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0.75rem;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  margin-bottom: 2rem;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: all 0.15s;
  border: 0.5px solid transparent;
}
.sidebar-link svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: var(--fg-dim);
  transition: color 0.15s;
}
.sidebar-link:hover {
  background: var(--surface-2);
  color: var(--fg);
}
.sidebar-link:hover svg { color: var(--fg-muted); }
.sidebar-link.active {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--fg);
}
.sidebar-link.active svg { color: var(--accent); }
.sidebar-section {
  padding: 0 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}

/* ══════════════════════════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════════════════════════ */

.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 99;
}
.topbar-left {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.notification-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border);
  color: var(--fg-muted);
  position: relative;
  transition: all 0.15s;
}
.notification-btn:hover {
  border-color: var(--fg-muted);
  color: var(--fg);
}
.notification-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}
.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ══════════════════════════════════════════════════════════════ */

.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  padding: 2rem;
  min-height: calc(100vh - var(--topbar-h));
  width: calc(100% - var(--sidebar-w));
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.page-subtitle {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════
   WIDGET GRID
   ══════════════════════════════════════════════════════════════ */

.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.widget {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.widget:hover {
  border-color: var(--fg-dim);
}
.widget-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.widget-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  color: var(--accent);
}
.widget-icon svg { width: 1.125rem; height: 1.125rem; }
.widget-metric {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.375rem;
}
.widget-label {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}
.widget-action {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  padding: 0.25rem 0;
  border-bottom: 0.5px solid transparent;
  transition: all 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: auto;
}

.widget-detail {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 1.3rem;
  margin-top: 0.55rem;
  color: var(--fg-dim);
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.widget-detail-dot {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(190, 104, 57, 0.1);
}

.widget-detail-dot.is-positive {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(47, 125, 91, 0.1);
}

.widget-detail-dot.is-warning {
  background: #c58a36;
  box-shadow: 0 0 0 3px rgba(197, 138, 54, 0.11);
}
.widget-action:hover {
  border-bottom-color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   CHAT — Vereins-KI
   ══════════════════════════════════════════════════════════════ */

.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-h) - 4rem);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.chat-message {
  display: flex;
  gap: 0.75rem;
  max-width: 720px;
}
.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
}
.chat-message.user .chat-avatar {
  background: var(--accent);
  color: #fff;
}
.chat-bubble {
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
}
.chat-message.user .chat-bubble {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chat-prompt-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.chip {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 0.5px solid var(--border);
  font-size: 0.8125rem;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface);
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  padding: 0.875rem 1rem;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--fg);
  outline: none;
  resize: none;
  min-height: 48px;
  max-height: 120px;
  transition: border-color 0.2s;
}
.chat-input::placeholder { color: var(--fg-dim); }
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  box-shadow: var(--accent-glow);
}
.chat-send:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 30px rgba(187, 85, 34, 0.2);
}
.chat-send svg { width: 1.125rem; height: 1.125rem; }

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════════════════════════ */

.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.landing-logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.landing-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.landing-nav a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.15s;
}
.landing-nav a:hover { color: var(--fg); }
.landing-login-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  margin-left: 0.35rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 10px;
  background: rgba(255,255,255,0.82);
  color: var(--fg) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(17,24,39,0.04);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.landing-login-link:hover {
  background: #fff;
  border-color: var(--border);
}
.landing-header-cta {
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.features-section {
  padding: 4rem 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}
.features-header {
  text-align: center;
  margin-bottom: 3rem;
}
.features-header h2 {
  margin-bottom: 0.75rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.feature-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s;
}
.feature-card:hover {
  border-color: var(--fg-dim);
}
.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.feature-icon svg { width: 1.25rem; height: 1.25rem; }
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.landing-footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.landing-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}
.landing-footer-tagline {
  font-size: 0.8125rem;
  color: var(--fg-dim);
}

/* Public landing footer: a calm, useful close to the conversion path. */
.landing-footer-rich {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: block;
}
.landing-footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(140px, 1fr));
  gap: 2rem;
}
.landing-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.landing-footer-logo { color: var(--fg); gap: 0.65rem; }
.landing-footer-icon { display: block; width: 1.75rem; height: 1.75rem; object-fit: contain; border-radius: 0.45rem; }
.landing-footer-mark { width: 0.65rem; height: 0.65rem; border-radius: 2px; background: var(--accent); box-shadow: 0 0 16px rgba(187, 85, 34, 0.45); }
.landing-footer-brand .landing-footer-tagline { max-width: 260px; line-height: 1.55; }
.landing-footer-contact { color: var(--accent); font-size: 0.8125rem; font-weight: 600; transition: color 0.15s ease; }
.landing-footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; font-size: 0.8125rem; }
.landing-footer-nav > span { color: var(--fg-dim); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.25rem; }
.landing-footer-nav a { color: var(--fg-muted); transition: color 0.15s ease; }
.landing-footer-nav a:hover, .landing-footer-contact:hover, .landing-footer-bottom a:hover { color: var(--fg); }
.landing-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 0.5px solid var(--border); margin-top: 2rem; padding-top: 1rem; color: var(--fg-dim); font-size: 0.6875rem; }
.landing-footer-bottom nav { display: flex; gap: 1rem; }
.landing-footer-bottom a { transition: color 0.15s ease; }

/* Public legal pages are deliberately a draft shell until operator data is supplied. */
.legal-page { align-items: flex-start; padding: clamp(1rem, 4vw, 3rem); }
.legal-card { max-width: 760px; padding: clamp(1.5rem, 4vw, 3rem); }
.legal-card .logo { margin-bottom: 1.75rem; }
.legal-intro { color: var(--fg-muted); line-height: 1.7; margin-top: 1rem; }
.legal-status { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; padding: 0.55rem 0.75rem; border: 0.5px solid rgba(187, 85, 34, 0.3); border-radius: 999px; color: var(--accent); background: rgba(187, 85, 34, 0.06); font-size: 0.75rem; font-weight: 600; }
.legal-status::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.legal-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 0.5px solid var(--border); }
.legal-section h2 { font-size: 1.05rem; margin-bottom: 0.65rem; }
.legal-section p, .legal-section li { color: var(--fg-muted); font-size: 0.9rem; line-height: 1.7; }
.legal-section ul { padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.legal-placeholder { margin-top: 1rem; padding: 1rem; border-radius: var(--radius); background: var(--surface-2); border: 0.5px solid var(--border); }
.legal-placeholder strong { display: block; margin-bottom: 0.35rem; color: var(--fg); font-size: 0.85rem; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ══════════════════════════════════════════════════════════════
   TABLE
   ══════════════════════════════════════════════════════════════ */

.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  border-bottom: 0.5px solid var(--border);
}
.data-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-bottom: 0.5px solid var(--border);
  color: var(--fg-muted);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { color: var(--fg); }

/* ══════════════════════════════════════════════════════════════
   STATUS BADGE
   ══════════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 0.5px solid;
}
.badge-success {
  background: rgba(48, 164, 108, 0.1);
  color: var(--success);
  border-color: rgba(48, 164, 108, 0.2);
}
.badge-warning {
  background: rgba(245, 166, 35, 0.1);
  color: var(--warning);
  border-color: rgba(245, 166, 35, 0.2);
}
.badge-danger {
  background: rgba(229, 72, 77, 0.1);
  color: var(--danger);
  border-color: rgba(229, 72, 77, 0.2);
}

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-state-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  color: var(--fg-dim);
}
.empty-state-icon svg { width: 1.5rem; height: 1.5rem; }
.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.empty-state p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  max-width: 360px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   FORM LAYOUT
   ══════════════════════════════════════════════════════════════ */

.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--fg-muted);
}
.form-divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 1.5rem 0;
}
.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 0.375rem;
}

/* ══════════════════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-dim); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    bottom: 0;
    top: auto;
    flex-direction: row;
    padding: 0.5rem;
    border-right: none;
    border-top: 0.5px solid var(--border);
    overflow-x: auto;
    gap: 0.25rem;
  }
  .sidebar-logo, .sidebar-section { display: none; }
  .sidebar-nav {
    flex-direction: row;
    gap: 0;
  }
  .sidebar-link {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    font-size: 0.625rem;
    white-space: nowrap;
  }
  .sidebar-link svg { width: 1rem; height: 1rem; }

  .topbar {
    left: 0;
  }
  .main-content {
    margin-left: 0;
    padding-bottom: 5rem;
    width: 100%;
  }
  .widget-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .landing-nav { display: none; }
  .landing-header { gap: 0.45rem; padding: 0.6rem 0.7rem; }
  .landing-login-link { margin-left: auto; }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .landing-footer {
    flex-direction: column;
    text-align: center;
  }
  .landing-footer-main { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .landing-footer-brand { grid-column: 1 / -1; }
  .landing-footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .hero { padding: 5rem 1.25rem 3rem; }
  .features-section { padding: 2rem 1.25rem 4rem; }
  .main-content { padding: 1.25rem; }
  .auth-card { padding: 1.5rem; }
  .legal-page { padding: 1rem; }
  .legal-card { padding: 1.25rem; }
  .landing-footer-main { grid-template-columns: 1fr; }
  .landing-footer-brand { grid-column: auto; }
  header.landing-header { width: calc(100% - 1rem) !important; }
  .landing-logo-image { height: 1.05rem; max-width: 6.25rem; }
  .landing-login-link { min-height: 2.75rem; padding-inline: 0.5rem; font-size: 0.6875rem; }
  .landing-header-cta { min-height: 2.75rem; padding-inline: 0.45rem; font-size: 0.6875rem; }
}

@media (max-width: 767px) {
  .hero-orbit { display: none; }
  .hero h1 span { white-space: normal; }
}

/* ══════════════════════════════════════════════════════════════
   STANDARD APP SHELL — floating club sidebar
   ══════════════════════════════════════════════════════════════ */

body.dashboard-floating-shell {
  --app-sidebar-expanded: 224px;
  --app-sidebar-collapsed: 84px;
  --app-sidebar-current: var(--app-sidebar-expanded);
  --app-content-offset: 128px;
  --app-title-offset: 276px;
  --app-content-gutter: 20px;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f7f9fb 0%, #eef4f7 100%);
}
body.dashboard-floating-shell.sidebar-collapsed {
  --app-sidebar-current: var(--app-sidebar-collapsed);
  --app-content-offset: 128px;
  --app-title-offset: 276px;
}
body.dashboard-floating-shell::before {
  content: none !important;
  display: none !important;
}
body.dashboard-floating-shell.sidebar-collapsed::before {
  content: none !important;
  display: none !important;
}
.dashboard-floating-shell .app-layout {
  min-height: 100vh;
  width: 100%;
}
.dashboard-floating-shell .sidebar {
  top: 20px;
  left: 20px;
  bottom: 20px;
  width: var(--app-sidebar-current);
  padding: 14px;
  border: 0.5px solid rgba(221, 229, 234, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 52px rgba(17, 24, 39, 0.10);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  overflow: hidden;
  contain: layout paint;
  transform: translateZ(0);
  will-change: width, padding;
  transition:
    width 0.96s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.96s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.24s ease,
    background 0.24s ease;
}
.dashboard-floating-shell .sidebar::before {
  content: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(17, 24, 39, 0.035);
}
.dashboard-floating-shell .sidebar-logo {
  padding: 0;
  margin: 0 0 1rem;
}
.dashboard-floating-shell .club-switcher {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.58rem;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  transition:
    padding 0.96s cubic-bezier(0.16, 1, 0.3, 1),
    gap 0.96s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.24s ease;
}
.dashboard-floating-shell .club-switcher-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 42px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(187, 85, 34, 0.98), rgba(216, 132, 85, 0.92));
  box-shadow: 0 10px 22px rgba(187, 85, 34, 0.20);
}
.dashboard-floating-shell .club-switcher-crest {
  width: 26px;
  height: 30px;
  color: #fff;
}
.dashboard-floating-shell .club-switcher-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.dashboard-floating-shell .club-switcher-meta {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.6875rem;
  color: var(--fg-muted);
}
.dashboard-floating-shell .club-switcher > div:last-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    opacity 0.34s ease,
    width 0.74s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.74s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dashboard-floating-shell .sidebar-nav {
  gap: 0.18rem;
}
.dashboard-floating-shell .sidebar-link {
  position: relative;
  min-height: 32px;
  padding: 0.36rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  line-height: 1.18;
  color: #596273;
  gap: 0.48rem;
  overflow: hidden;
  white-space: nowrap;
  transition:
    padding 0.66s cubic-bezier(0.2, 0.8, 0.2, 1),
    gap 0.66s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}
.dashboard-floating-shell .sidebar-label {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: clip;
  vertical-align: middle;
  opacity: 1;
  transform: translateX(0);
  transition:
    max-width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.34s ease 0.08s,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dashboard-floating-shell .sidebar-link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(187, 85, 34, 0.08), 0 0 14px rgba(187, 85, 34, 0.22);
  opacity: 0;
  transform: scaleY(0.45);
  transform-origin: center;
  transition:
    opacity 0.18s ease,
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    left 0.66s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dashboard-floating-shell .sidebar-link svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  color: #9aa3b2;
  transition: color 0.15s ease;
}
.dashboard-floating-shell .sidebar-link:hover {
  background: rgba(238, 243, 246, 0.78);
}
.dashboard-floating-shell .sidebar-link.active {
  background: rgba(187, 85, 34, 0.08);
  border-color: rgba(187, 85, 34, 0.12);
  color: var(--accent);
}
.dashboard-floating-shell .sidebar-link.active::after {
  opacity: 1;
  transform: scaleY(1);
}
.dashboard-floating-shell .sidebar-link.active svg {
  color: var(--accent);
}
.dashboard-floating-shell .sidebar-link.is-separated {
  position: relative;
  margin-top: 1.2rem;
}
.dashboard-floating-shell .sidebar-link.is-separated::before {
  content: "";
  position: absolute;
  left: 0.62rem;
  top: -0.62rem;
  width: 1.15rem;
  height: 1px;
  border-radius: 999px;
  background: rgba(187, 85, 34, 0.28);
}
.dashboard-floating-shell .sidebar-link.is-utility {
  color: #6a7280;
}
.dashboard-floating-shell .sidebar-bottom {
  display: grid;
  gap: 0.18rem;
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 0.5px solid var(--border);
}
.dashboard-floating-shell .topbar {
  display: none;
}
.dashboard-floating-shell .main-content {
  margin-left: var(--app-content-offset);
  margin-right: var(--app-content-gutter);
  margin-top: 0;
  width: calc(100vw - var(--app-content-offset) - var(--app-content-gutter));
  min-height: 100vh;
  padding: var(--app-content-gutter) 0;
  transition: none;
}
.dashboard-floating-shell .page-header,
.dashboard-floating-shell .widget-grid,
.dashboard-floating-shell .card,
.dashboard-floating-shell .chat-container {
  width: 100%;
}
.dashboard-floating-shell .page-header {
  gap: 1rem;
  min-width: 0;
  margin-left: calc(var(--app-title-offset) - var(--app-content-offset));
  width: calc(100% - (var(--app-title-offset) - var(--app-content-offset)));
}
.dashboard-floating-shell .page-header > div:first-child {
  min-width: 0;
}
.dashboard-floating-shell .page-header > div:last-child {
  flex: 0 0 auto;
}
.dashboard-floating-shell .widget-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.asset-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: 1rem;
  align-items: start;
}
.generator-shell { display: grid; gap: 1rem; }
.generator-intro { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 1.4rem; background: linear-gradient(135deg, rgba(187,85,34,.10), rgba(255,255,255,.84)); border-color: rgba(187,85,34,.18); }
.generator-intro h2 { font-size: 1.15rem; letter-spacing: -.025em; }
.generator-context { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.generator-grid { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); gap: 1rem; align-items: start; }
.generator-form, .generator-preview { min-height: 430px; }
.generator-form .form-group { margin-bottom: 1rem; }
.generator-form .btn { width: 100%; margin-top: .25rem; }
.social-preview-empty { min-height: 330px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 2rem; color: var(--fg-muted); background: var(--surface); }
.social-preview-empty h3 { color: var(--fg); margin-bottom: .35rem; }
.social-preview-empty p { max-width: 340px; font-size: .8125rem; }
.social-preview-card { overflow: hidden; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface-2); }
.social-preview-media { min-height: 190px; display: grid; place-items: center; background: linear-gradient(135deg, #d0684c, #e8b49d 52%, #292421); background-position: center; background-size: cover; color: #fff; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.social-preview-copy { padding: 1rem; background: var(--surface); }
.social-preview-copy p { margin-top: .55rem; font-size: .85rem; line-height: 1.45; color: var(--fg-muted); }
.generator-actions { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem 1rem 1rem; background: var(--surface); }
.dashboard-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(135deg, rgba(187,85,34,.10), rgba(255,255,255,.76));
  border-color: rgba(187,85,34,.18);
}
.dashboard-focus-kicker { color: var(--accent); font-size: .68rem; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-focus h2 { margin-top: .28rem; font-size: 1.08rem; letter-spacing: -.025em; }
.dashboard-focus p { margin-top: .25rem; color: var(--fg-muted); font-size: .78rem; }
.dashboard-focus-actions { display: flex; flex-wrap: wrap; gap: .55rem; flex: 0 0 auto; }
.dashboard-floating-shell.sidebar-collapsed .sidebar {
  padding-inline: 12px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}
.dashboard-floating-shell.sidebar-collapsed .club-switcher {
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 0.58rem;
}
.dashboard-floating-shell.sidebar-collapsed .club-switcher > div:last-child {
  width: 142px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.dashboard-floating-shell.sidebar-collapsed .sidebar-link {
  justify-content: center;
  gap: 0;
  padding-inline: 0;
  font-size: 0.75rem;
}
.dashboard-floating-shell.sidebar-collapsed .sidebar-label {
  max-width: 0;
  opacity: 0;
  transform: translateX(-5px);
  transition:
    max-width 0.68s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s ease,
    transform 0.68s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dashboard-floating-shell.sidebar-collapsed .sidebar-link.active {
  border-color: rgba(187, 85, 34, 0.20);
  box-shadow:
    inset 0 0 0 0.5px rgba(187, 85, 34, 0.22),
    0 0 0 3px rgba(187, 85, 34, 0.035);
}
.dashboard-floating-shell.sidebar-collapsed .sidebar-link::after {
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
}
.dashboard-floating-shell.sidebar-collapsed .sidebar-link svg {
  width: 1rem;
  height: 1rem;
}
.dashboard-floating-shell.sidebar-collapsed .sidebar-link.is-separated::before {
  left: 50%;
  transform: translateX(-50%);
}

/* Segmented sidebar: each pod expands independently. */
.dashboard-floating-shell .sidebar {
  width: var(--app-sidebar-collapsed);
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible;
  contain: none;
  pointer-events: none;
  gap: 0.85rem;
  isolation: isolate;
}
.dashboard-floating-shell .sidebar-logo,
.dashboard-floating-shell .sidebar-nav,
.dashboard-floating-shell .sidebar-bottom {
  pointer-events: auto;
}
.dashboard-floating-shell .sidebar-logo {
  width: var(--app-sidebar-expanded);
  margin: 0 0 0.85rem;
}
.dashboard-floating-shell .club-switcher {
  width: var(--app-sidebar-expanded);
}
.dashboard-floating-shell .club-switcher,
.dashboard-floating-shell .sidebar-nav,
.dashboard-floating-shell .sidebar-bottom {
  width: var(--app-sidebar-collapsed);
  border: 0.5px solid rgba(221, 229, 234, 0.9);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.09);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  transition:
    width 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.24s ease,
    background 0.24s ease;
}
.dashboard-floating-shell .club-switcher {
  border-radius: 24px;
}
.dashboard-floating-shell .sidebar-nav {
  flex: 0 0 auto;
  padding: 14px;
  border-radius: 24px;
}
.dashboard-floating-shell .sidebar-bottom {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 14px 12px;
  border-radius: 24px;
  border-top: 0.5px solid rgba(221, 229, 234, 0.9);
}
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav:hover,
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav:focus-within,
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav.is-pod-open,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom:hover,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom:focus-within,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom.is-pod-open {
  width: var(--app-sidebar-expanded);
  padding: 14px;
  box-shadow: 0 18px 52px rgba(17, 24, 39, 0.11);
}
.dashboard-floating-shell.sidebar-collapsed .club-switcher,
.dashboard-floating-shell.sidebar-collapsed .club-switcher:hover,
.dashboard-floating-shell.sidebar-collapsed .club-switcher:focus-within,
.dashboard-floating-shell.sidebar-collapsed .club-switcher.is-pod-open {
  width: var(--app-sidebar-expanded);
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 0.58rem;
  box-shadow: 0 18px 52px rgba(17, 24, 39, 0.11);
}
.dashboard-floating-shell.sidebar-collapsed .club-switcher:hover > div:last-child,
.dashboard-floating-shell.sidebar-collapsed .club-switcher:focus-within > div:last-child,
.dashboard-floating-shell.sidebar-collapsed .club-switcher.is-pod-open > div:last-child {
  width: 142px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav:hover .sidebar-link,
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav:focus-within .sidebar-link,
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav.is-pod-open .sidebar-link,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom:hover .sidebar-link,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom:focus-within .sidebar-link,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom.is-pod-open .sidebar-link {
  justify-content: flex-start;
  gap: 0.48rem;
  padding: 0.36rem 0.5rem;
  font-size: 0.75rem;
}
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav:hover .sidebar-label,
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav:focus-within .sidebar-label,
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav.is-pod-open .sidebar-label,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom:hover .sidebar-label,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom:focus-within .sidebar-label,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom.is-pod-open .sidebar-label {
  max-width: 150px;
  opacity: 1;
  transform: translateX(0);
  transition:
    max-width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.34s ease 0.12s,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav:hover .sidebar-link::after,
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav:focus-within .sidebar-link::after,
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav.is-pod-open .sidebar-link::after,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom:hover .sidebar-link::after,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom:focus-within .sidebar-link::after,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom.is-pod-open .sidebar-link::after {
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
}
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav:hover .sidebar-link.is-separated::before,
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav:focus-within .sidebar-link.is-separated::before,
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav.is-pod-open .sidebar-link.is-separated::before {
  left: 0.62rem;
  transform: none;
}
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav:hover .sidebar-link svg,
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav:focus-within .sidebar-link svg,
.dashboard-floating-shell.sidebar-collapsed .sidebar-nav.is-pod-open .sidebar-link svg,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom:hover .sidebar-link svg,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom:focus-within .sidebar-link svg,
.dashboard-floating-shell.sidebar-collapsed .sidebar-bottom.is-pod-open .sidebar-link svg {
  width: 0.9rem;
  height: 0.9rem;
}

@media (max-width: 900px) {
  body.dashboard-floating-shell,
  body.dashboard-floating-shell.sidebar-collapsed {
    --app-sidebar-current: auto;
    --app-content-offset: 0;
    --app-title-offset: 0;
  }
  body.dashboard-floating-shell::before {
    display: none;
  }
  .dashboard-floating-shell .app-layout { flex-direction: column; }
  .dashboard-floating-shell .sidebar {
    position: static;
    width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    height: auto;
    margin: 1rem;
    flex-direction: column;
    overflow: visible;
  }
  .dashboard-floating-shell .sidebar-logo {
    display: flex;
  }
  .dashboard-floating-shell .sidebar-nav {
    flex-direction: column;
    width: 100%;
  }
  .dashboard-floating-shell .sidebar-link { min-width: 0; }
  .dashboard-floating-shell .main-content {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }
  .asset-columns { grid-template-columns: 1fr; }
  .generator-intro { align-items: flex-start; flex-direction: column; }
  .generator-context { justify-content: flex-start; }
  .generator-grid { grid-template-columns: 1fr; }
  .generator-form, .generator-preview { min-height: 0; }
  .dashboard-focus { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  body.dashboard-floating-shell::before,
  .dashboard-floating-shell .sidebar,
  .dashboard-floating-shell .club-switcher,
  .dashboard-floating-shell .club-switcher > div:last-child,
  .dashboard-floating-shell .sidebar-link,
  .dashboard-floating-shell .sidebar-link svg,
  .dashboard-floating-shell .main-content {
    transition: none;
  }
}
