:root {
  --bg: #07101a;
  --bg-secondary: #0b1521;
  --surface: rgba(13, 22, 34, 0.84);
  --surface-strong: rgba(17, 28, 42, 0.96);
  --surface-soft: rgba(18, 31, 47, 0.72);
  --border: rgba(156, 177, 203, 0.16);
  --border-strong: rgba(198, 214, 236, 0.24);
  --text: #edf4ff;
  --muted: #92a0b5;
  --accent-blue: #77a7ff;
  --accent-amber: #ddab62;
  --accent-teal: #61c4b5;
  --accent-violet: #8b8ff1;
  --success: #7dcb8e;
  --danger: #e07b7b;
  --shadow: 0 24px 60px rgba(2, 6, 12, 0.45);
  --shadow-hover: 0 30px 80px rgba(2, 6, 12, 0.62);
  --glow-blue: 0 0 0 1px rgba(119, 167, 255, 0.22), 0 18px 48px rgba(28, 78, 142, 0.2);
  --glow-amber: 0 0 0 1px rgba(221, 171, 98, 0.3), 0 18px 48px rgba(221, 171, 98, 0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(119, 167, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(221, 171, 98, 0.14), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(97, 196, 181, 0.1), transparent 32%),
    linear-gradient(180deg, #07101a 0%, #09131f 48%, #060d16 100%);
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: -20%;
  z-index: 0;
  opacity: 0.36;
  background:
    radial-gradient(circle at 22% 18%, rgba(119, 167, 255, 0.2), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(221, 171, 98, 0.16), transparent 22%),
    radial-gradient(circle at 48% 92%, rgba(97, 196, 181, 0.14), transparent 28%);
  filter: blur(16px);
  animation: background-drift 18s var(--ease-out) infinite alternate;
}

body::selection {
  background: rgba(119, 167, 255, 0.28);
}

.page-backdrop,
.page-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.page-backdrop {
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.02), transparent 35%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.02), transparent 32%);
}

.page-grain {
  z-index: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 0.2rem 0.42rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95em;
}

.landing-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.landing-hero {
  max-width: 720px;
  margin-bottom: 36px;
  animation: rise-in 0.6s ease both;
}

.landing-label,
.eyebrow,
.brand-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent-amber);
}

.landing-hero h1,
.sidebar__brand h1,
.topbar h2 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}

.landing-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.96;
  max-width: 12ch;
}

.landing-copy {
  margin: 18px 0 0;
  max-width: 54ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.public-home {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.home-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 7vw, 78px);
  background:
    radial-gradient(circle at 76% 18%, rgba(221, 171, 98, 0.18), transparent 18%),
    linear-gradient(135deg, rgba(15, 26, 42, 0.94), rgba(7, 13, 22, 0.78));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: rise-in 0.58s var(--ease-out) both;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-hero::before {
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(237, 244, 255, 0.65) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(221, 171, 98, 0.45) 0 1px, transparent 1.5px);
  background-position: 18% 24%, 64% 34%;
  background-size: 160px 160px, 220px 220px;
  opacity: 0.28;
}

.home-hero::after {
  right: clamp(24px, 8vw, 92px);
  bottom: clamp(24px, 7vw, 74px);
  width: min(340px, 42vw);
  aspect-ratio: 1.45;
  opacity: 0.18;
  background:
    radial-gradient(ellipse at 50% 28%, transparent 0 18%, #edf4ff 19% 21%, transparent 22%),
    radial-gradient(circle at 38% 42%, #ddab62 0 4%, transparent 5%),
    radial-gradient(circle at 62% 42%, #ddab62 0 4%, transparent 5%),
    linear-gradient(140deg, transparent 0 34%, rgba(237, 244, 255, 0.9) 35% 39%, transparent 40%),
    linear-gradient(220deg, transparent 0 34%, rgba(237, 244, 255, 0.9) 35% 39%, transparent 40%);
}

.home-hero__moon {
  position: absolute;
  right: clamp(28px, 9vw, 104px);
  top: clamp(28px, 8vw, 88px);
  width: clamp(92px, 14vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8dd, #ddab62 68%, rgba(221, 171, 98, 0.2));
  box-shadow: 0 0 80px rgba(221, 171, 98, 0.28);
  opacity: 0.88;
}

.home-hero__content {
  position: relative;
  max-width: 760px;
}

.home-hero h1,
.home-section h2 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}

.home-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
}

.home-hero__copy {
  max-width: 62ch;
  margin: 24px 0 0;
  color: #d5e0f0;
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.75;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-section {
  margin-top: 34px;
  animation: rise-in 0.58s var(--ease-out) both;
}

.home-section h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.home-feature-grid,
.home-card-grid,
.home-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.home-feature-grid article,
.home-nav-card,
.home-team-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 26, 40, 0.92), rgba(10, 18, 30, 0.88));
  box-shadow: var(--shadow);
}

.home-feature-grid article,
.home-nav-card {
  padding: 22px;
}

.home-feature-grid span,
.home-nav-card strong,
.home-team-card strong {
  display: block;
  color: var(--text);
  font-weight: 800;
}

.home-feature-grid p,
.home-nav-card span,
.home-team-card span,
.home-team-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.home-nav-card {
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease;
}

.home-nav-card:hover,
.home-nav-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(221, 171, 98, 0.34);
  box-shadow: var(--shadow-hover), var(--glow-amber);
}

.home-team-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.home-team-card img,
.home-team-card__avatar {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(221, 171, 98, 0.24);
  background: rgba(221, 171, 98, 0.12);
}

.home-team-card__avatar {
  display: grid;
  place-items: center;
  color: var(--accent-amber);
  font-weight: 800;
  font-size: 1.6rem;
}

.home-team-card a {
  display: inline-flex;
  margin-top: 12px;
  color: #f1c583;
  font-weight: 800;
}

.home-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.home-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-footer strong,
.home-footer a:hover {
  color: var(--text);
}

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.guild-card,
.empty-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(16, 26, 40, 0.96), rgba(10, 18, 30, 0.92));
  box-shadow: var(--shadow);
}

.guild-card {
  padding: 24px;
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  animation: rise-in 0.52s var(--ease-out) both;
}

.guild-card:hover {
  transform: translateY(-5px);
  border-color: rgba(221, 171, 98, 0.3);
  box-shadow: var(--shadow-hover), var(--glow-amber);
}

.guild-card__header,
.guild-card__footer,
.transaction-card__meta,
.panel-card__header,
.donor-row__labels,
.absence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guild-card__header h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-teal), #3f857b);
  box-shadow: 0 0 18px rgba(97, 196, 181, 0.55);
}

.guild-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.guild-card__metrics span,
.metric-card span,
.topbar__meta,
.transaction-card__meta,
.event-row__meta span,
.event-row__meta small,
.sidebar__brand p,
.panel-card__header p,
.settings-list dt,
.absence-row p,
.empty-inline {
  color: var(--muted);
}

.guild-card__metrics strong,
.metric-card strong,
.panel-accent,
.event-row__meta strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-weight: 800;
}

.guild-card__footer {
  font-size: 0.92rem;
}

.empty-panel {
  padding: 32px;
}

.empty-panel h2 {
  margin-top: 0;
}

.panel-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  width: min(1480px, calc(100% - 32px));
  margin: 16px auto;
  padding-bottom: 16px;
}

.legal-shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 40px;
}

.legal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 26, 40, 0.96), rgba(10, 18, 30, 0.94));
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 48px);
}

.legal-card h1 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.legal-card h2 {
  margin: 32px 0 10px;
  font-size: 1.15rem;
}

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

.legal-card a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  margin-top: 12px;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--text);
}

.sidebar,
.panel-card,
.metric-card,
.topbar {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
  border-radius: 30px;
  padding: 26px 22px;
  background:
    linear-gradient(180deg, rgba(18, 28, 43, 0.98), rgba(8, 16, 27, 0.96)),
    radial-gradient(circle at top right, rgba(119, 167, 255, 0.12), transparent 28%);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(119, 167, 255, 0.12), transparent 32%, rgba(221, 171, 98, 0.12));
  opacity: 0.45;
  mask-image: linear-gradient(#000, transparent 44%);
}

.sidebar__brand h1 {
  font-size: 2rem;
  line-height: 1;
}

.sidebar__crest {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  border: 1px solid rgba(221, 171, 98, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 30%, rgba(221, 171, 98, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(26, 25, 19, 0.88), rgba(13, 18, 26, 0.96));
  color: #f4cd8d;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 22px rgba(221, 171, 98, 0.08), 0 14px 36px rgba(2, 6, 12, 0.28);
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 260ms ease;
}

.sidebar:hover .sidebar__crest,
.auth-card:hover {
  border-color: rgba(221, 171, 98, 0.42);
  box-shadow: var(--shadow), var(--glow-amber);
}

.sidebar__brand p {
  margin: 14px 0 0;
  line-height: 1.6;
}

.sidebar__nav {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.sidebar__nav a,
.sidebar__back {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #dce7f7;
  transition: background 190ms ease, border-color 190ms ease, transform 190ms var(--ease-out), color 190ms ease;
}

.sidebar__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-amber), var(--accent-blue));
  opacity: 0;
  transform: scaleY(0.45);
  transition: opacity 190ms ease, transform 190ms var(--ease-out);
}

.sidebar__nav a:hover,
.sidebar__back:hover {
  transform: translateX(4px);
  border-color: rgba(119, 167, 255, 0.24);
  background: rgba(119, 167, 255, 0.08);
}

.sidebar__nav a:hover::before,
.sidebar__nav a:focus-visible::before,
.sidebar__nav a[aria-current="page"]::before {
  opacity: 1;
  transform: scaleY(1);
}

.sidebar__card {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(221, 171, 98, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(32, 27, 20, 0.65), rgba(20, 20, 20, 0.28));
}

.sidebar__card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.sidebar__card p,
.sidebar__card small {
  display: block;
  color: var(--muted);
}

.sidebar__back {
  display: inline-flex;
  margin-top: 20px;
}

.dashboard-shell {
  min-width: 0;
  display: grid;
  gap: 20px;
  padding: 4px 0 0;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border-radius: 28px;
  animation: page-header-in 0.48s var(--ease-out) both;
}

.topbar h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.94;
}

.topbar__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 0.92rem;
}

.topbar__welcome {
  margin: 14px 0 0;
  color: var(--muted);
}

.topbar__meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  animation: rise-in 0.52s var(--ease-out) both;
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.metric-card:hover,
.panel-card:hover,
.transaction-card:hover,
.event-row:hover,
.absence-row:hover,
.ticket-row:hover,
.manage-row:hover {
  transform: translateY(-3px);
  border-color: rgba(119, 167, 255, 0.26);
  box-shadow: var(--shadow-hover), var(--glow-blue);
}

.metric-card strong {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.metric-card p {
  margin: 10px 0 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.metric-card--donors strong {
  margin-top: 0;
}

.metric-card--amber {
  background: linear-gradient(180deg, rgba(52, 39, 22, 0.75), rgba(17, 22, 34, 0.92));
}

.metric-card--blue {
  background: linear-gradient(180deg, rgba(19, 39, 68, 0.72), rgba(17, 22, 34, 0.92));
}

.metric-card--violet {
  background: linear-gradient(180deg, rgba(35, 34, 72, 0.68), rgba(17, 22, 34, 0.92));
}

.metric-card--steel {
  background: linear-gradient(180deg, rgba(24, 34, 46, 0.76), rgba(17, 22, 34, 0.92));
}

.donor-mini-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.donor-mini-list div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.donor-mini-list em {
  color: var(--accent-amber);
  font-style: normal;
}

.donor-mini-list small {
  color: #ecc07f;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.92fr);
  gap: 18px;
}

.content-main,
.content-side {
  display: grid;
  gap: 18px;
}

.panel-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px;
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.panel-card--feature {
  background:
    linear-gradient(180deg, rgba(20, 30, 47, 0.94), rgba(10, 16, 26, 0.92)),
    radial-gradient(circle at top right, rgba(221, 171, 98, 0.12), transparent 20%);
}

.panel-card__header h3,
.transaction-card h4,
.event-row h4,
.absence-row h4 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.panel-accent {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(221, 171, 98, 0.12);
  color: #f1c583;
}

.transaction-list,
.event-list,
.donor-list,
.absence-list {
  display: grid;
  gap: 14px;
}

.transaction-card,
.event-row,
.absence-row {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 200ms var(--ease-out), border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.transaction-card__meta {
  font-size: 0.84rem;
  margin-bottom: 14px;
}

.transaction-card--success {
  box-shadow: inset 3px 0 0 rgba(125, 203, 142, 0.88);
}

.transaction-card--danger {
  box-shadow: inset 3px 0 0 rgba(224, 123, 123, 0.88);
}

.transaction-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.transaction-badge--success {
  background: rgba(125, 203, 142, 0.16);
  color: #9ae3aa;
}

.transaction-badge--danger {
  background: rgba(224, 123, 123, 0.16);
  color: #efaaaa;
}

.transaction-card__body {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.transaction-card__avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(119, 167, 255, 0.18), rgba(255, 255, 255, 0.03));
  color: #eaf1ff;
  font-weight: 800;
  flex-shrink: 0;
}

.transaction-card__body p,
.event-row p,
.absence-row p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.transaction-card__numbers {
  text-align: right;
}

.transaction-card__numbers strong {
  font-size: 1.05rem;
}

.transaction-card__numbers small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.event-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1.2fr) auto auto;
  gap: 16px;
}

.event-row__date {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.event-row__date strong {
  font-size: 1.5rem;
  line-height: 1;
}

.event-row__date span {
  margin-top: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.event-row__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-row__title span,
.event-row__attendance span {
  font-size: 0.84rem;
  color: var(--muted);
}

.event-row__meta {
  text-align: right;
}

.event-row__meta small {
  display: block;
  margin-top: 6px;
}

.event-row__attendance {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 96px;
  text-align: right;
}

.status-pill {
  display: inline-flex;
  justify-content: flex-end;
  color: #a9c9ff;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.donor-row {
  display: grid;
  gap: 10px;
}

.donor-row__bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.donor-row__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-amber));
  animation: bar-fill 0.8s var(--ease-out) both;
  transform-origin: left center;
}

.absence-row {
  align-items: flex-start;
}

.absence-row span {
  flex-shrink: 0;
  color: #d8e5f9;
}

.settings-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.settings-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-list div:last-child {
  border-bottom: 0;
}

.settings-list dt,
.settings-list dd {
  margin: 0;
}

.settings-list dd {
  color: #deebfb;
  text-align: right;
}

.empty-inline {
  padding: 20px 0 6px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-header-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine-sweep {
  from { transform: translateX(-120%) skewX(-18deg); }
  to { transform: translateX(220%) skewX(-18deg); }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px) translateX(18px);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-once {
  0% { box-shadow: 0 0 0 0 rgba(221, 171, 98, 0.32); }
  100% { box-shadow: 0 0 0 18px rgba(221, 171, 98, 0); }
}

@keyframes bar-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes skeleton-flow {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

@keyframes background-drift {
  from { transform: translate3d(-1.2%, -0.8%, 0) scale(1); }
  to { transform: translate3d(1.2%, 0.8%, 0) scale(1.03); }
}

.forum-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 86px;
}

.forum-nav,
.forum-search,
.forum-actions,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.forum-nav {
  margin-bottom: 22px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(13, 22, 34, 0.78);
}

.forum-nav a,
.pagination a {
  padding: 0.62rem 0.82rem;
  border-radius: 10px;
  color: var(--muted);
}

.forum-nav a:hover,
.forum-nav a:focus-visible,
.pagination a:hover,
.pagination a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: 2px solid rgba(119, 167, 255, 0.35);
}

.forum-hero {
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(16, 26, 40, 0.96), rgba(10, 18, 30, 0.92));
  box-shadow: var(--shadow);
}

.forum-hero h1,
.forum-shell h1,
.forum-shell h2 {
  margin: 0 0 12px;
  font-family: "Sora", "Segoe UI", sans-serif;
}

.forum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

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

.forum-category-grid a,
.forum-list-item,
.forum-question-row,
.forum-answer {
  display: block;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.forum-category-grid a span,
.forum-list-item span,
.forum-question-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.forum-question-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0;
}

.forum-body {
  color: var(--text);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.forum-answer {
  margin: 12px 0;
}

.team-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.forum-answer.is-accepted {
  border-color: rgba(125, 203, 142, 0.5);
}

.status-pill {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(125, 203, 142, 0.14);
  color: var(--success);
  font-weight: 700;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

@media (max-width: 720px) {
  .forum-question-row {
    display: block;
  }
}

.animate-fade-in {
  animation: fade-in 0.36s ease both;
}

.animate-slide-up {
  animation: slide-up 0.42s var(--ease-out) both;
}

.animate-stagger {
  animation-delay: calc(var(--stagger-index, 0) * 45ms);
}

.hover-lift,
.glow-card {
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-color 220ms ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
}

.glow-card:hover {
  border-color: rgba(119, 167, 255, 0.26);
  box-shadow: var(--shadow-hover), var(--glow-blue);
}

.button-shine {
  overflow: hidden;
}

.pulse-once {
  animation: pulse-once 0.7s ease-out both;
}

.reveal-item {
  opacity: 0;
  transform: translateY(14px);
}

.reveal-item.is-visible {
  animation: slide-up 0.46s var(--ease-out) both;
  animation-delay: calc(var(--stagger-index, 0) * 34ms);
}

@media (max-width: 1180px) {
  .panel-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }

  .metrics-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .landing-shell {
    width: min(100% - 24px, 1160px);
    padding-top: 40px;
  }

  .topbar,
  .transaction-card__body,
  .event-row,
  .absence-row,
  .guild-card__metrics,
  .guild-card__footer,
  .settings-list div {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .event-row__meta,
  .event-row__attendance,
  .transaction-card__numbers,
  .settings-list dd {
    text-align: left;
  }

  .transaction-card__numbers small {
    margin-top: 4px;
  }
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
}

.auth-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  animation: slide-up 0.5s var(--ease-out) both;
}

.auth-card::before,
.guild-card::before,
.panel-card::before,
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%, rgba(221, 171, 98, 0.06));
  opacity: 0;
  transition: opacity 220ms ease;
}

.auth-card:hover::before,
.guild-card:hover::before,
.panel-card:hover::before,
.metric-card:hover::before {
  opacity: 1;
}

.auth-card h1 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 2.2rem;
}

.auth-card p,
.field small {
  color: var(--muted);
  line-height: 1.55;
}

.notice {
  position: relative;
  border: 1px solid rgba(221, 171, 98, 0.22);
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(221, 171, 98, 0.1);
  color: #f2d19d;
  animation: slide-up 0.34s var(--ease-out) both;
}

.notice--error,
.field-error {
  border-color: rgba(224, 123, 123, 0.28);
  background: rgba(224, 123, 123, 0.1);
  color: #efaaaa;
}

button.sidebar__back,
.button {
  cursor: pointer;
  font: inherit;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #dce7f7;
  transition: transform 160ms var(--ease-out), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease, opacity 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  opacity: 0;
  transform: translateX(-120%) skewX(-18deg);
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(119, 167, 255, 0.28);
  box-shadow: 0 14px 34px rgba(2, 6, 12, 0.28);
}

.button:active {
  transform: scale(0.985);
}

.button:focus-visible,
.sidebar__nav a:focus-visible,
.sidebar__back:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(221, 171, 98, 0.72);
  outline-offset: 3px;
}

.button--primary:hover::after,
.button-shine:hover::after {
  opacity: 1;
  animation: shine-sweep 0.72s ease;
}

.button:disabled,
.button.is-loading {
  cursor: wait;
  opacity: 0.72;
}

.button.is-loading {
  color: transparent;
}

.button.is-loading::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffe4b6;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.button--primary {
  border-color: rgba(221, 171, 98, 0.36);
  background: linear-gradient(180deg, rgba(221, 171, 98, 0.28), rgba(221, 171, 98, 0.14));
  color: #ffe4b6;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 rgba(221, 171, 98, 0);
}

.button--primary:hover {
  border-color: rgba(221, 171, 98, 0.58);
  background: linear-gradient(180deg, rgba(221, 171, 98, 0.36), rgba(221, 171, 98, 0.18));
  box-shadow: var(--glow-amber);
}

.button--ghost {
  background: rgba(119, 167, 255, 0.08);
}

.button--ghost:hover {
  background: rgba(119, 167, 255, 0.14);
}

.button--danger {
  border-color: rgba(224, 123, 123, 0.32);
  background: rgba(224, 123, 123, 0.12);
  color: #ffc4c4;
}

.button--danger:hover {
  border-color: rgba(224, 123, 123, 0.52);
  box-shadow: 0 0 0 1px rgba(224, 123, 123, 0.22), 0 14px 34px rgba(224, 123, 123, 0.12);
}

.settings-page,
.admin-grid,
.settings-form,
.stack-form,
.mini-table,
.manage-list {
  display: grid;
  gap: 16px;
}

.settings-card,
.admin-grid .panel-card {
  scroll-margin-top: 18px;
}

.settings-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.field,
.stack-form label {
  display: grid;
  gap: 8px;
}

.field--textarea,
.field--wide,
.form-actions {
  grid-column: 1 / -1;
}

.field span,
.stack-form span {
  font-weight: 800;
}

.field small {
  min-height: 34px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(4, 10, 18, 0.52);
  color: var(--text);
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(119, 167, 255, 0.22);
  background: rgba(4, 10, 18, 0.62);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(221, 171, 98, 0.5);
  background: rgba(5, 13, 24, 0.76);
  box-shadow: 0 0 0 4px rgba(221, 171, 98, 0.09), 0 12px 28px rgba(2, 6, 12, 0.24);
}

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

.native-channel-select {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.channel-select-field {
  position: relative;
}

.channel-combobox {
  position: relative;
  display: grid;
  gap: 8px;
}

.channel-combobox__button {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 11px 44px 11px 13px;
  background: rgba(4, 10, 18, 0.58);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.channel-combobox__button::after {
  content: "⌄";
  position: absolute;
  right: 15px;
  color: var(--muted);
}

.channel-combobox__button:hover,
.channel-combobox__button:focus-visible {
  border-color: rgba(221, 171, 98, 0.48);
  background: rgba(5, 13, 24, 0.78);
  box-shadow: 0 0 0 4px rgba(221, 171, 98, 0.08);
}

.channel-combobox__button.is-empty {
  color: var(--muted);
}

.channel-combobox__clear {
  position: absolute;
  right: 36px;
  top: 8px;
  width: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.channel-combobox__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  max-height: 320px;
  padding: 10px;
  border: 1px solid rgba(221, 171, 98, 0.22);
  border-radius: 16px;
  background: rgba(8, 15, 27, 0.98);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
  animation: select-pop 140ms var(--ease-out);
}

.channel-combobox__search {
  min-height: 40px;
}

.channel-combobox__list {
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow: auto;
  padding-right: 2px;
}

.channel-option-group {
  padding: 8px 8px 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.channel-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.channel-option-row:hover,
.channel-option-row:focus-visible,
.channel-option-row.is-selected {
  background: rgba(221, 171, 98, 0.13);
}

.channel-option-row--none {
  color: var(--muted);
}

.channel-option-row__icon {
  width: 22px;
  color: var(--accent-amber);
}

.channel-select-chip {
  justify-self: start;
  max-width: 100%;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(221, 171, 98, 0.12);
  color: var(--text);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-permission-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.permission-hint {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
}

.permission-hint--ok {
  color: #9be7b0;
}

.permission-hint--warn,
.channel-permission-hints.has-warning {
  color: #ffd27d;
}

@keyframes select-pop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .channel-combobox__panel {
    animation: none;
  }
}

input[type="checkbox"] {
  width: 48px;
  min-height: 28px;
  accent-color: var(--accent-amber);
  cursor: pointer;
  filter: drop-shadow(0 0 10px rgba(221, 171, 98, 0.14));
}

input[type="color"] {
  max-width: 96px;
  padding: 4px;
}

.field-error {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(224, 123, 123, 0.28);
  border-radius: 10px;
  padding: 6px 9px;
  font-style: normal;
  font-size: 0.88rem;
  animation: slide-up 0.24s var(--ease-out) both;
}

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

.mini-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mini-table div:hover {
  transform: translateX(2px);
  border-color: rgba(119, 167, 255, 0.22);
  background: rgba(119, 167, 255, 0.06);
  box-shadow: inset 3px 0 0 rgba(221, 171, 98, 0.42);
}

.manage-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.manage-row textarea,
.manage-row input[name="reason"] {
  grid-column: span 2;
}

.manage-row input[name="message_text"],
.manage-row input[name="starts_at"],
.manage-row input[name="ends_at"] {
  min-width: 0;
}

.danger-zone {
  margin-top: 16px;
  border-top: 1px solid rgba(224, 123, 123, 0.2);
  padding-top: 16px;
}

.fun-action-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fun-action-tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fun-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.fun-preview__status {
  color: var(--muted);
  font-size: 0.9rem;
}

.fun-preview__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 10px;
}

.fun-preview__grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.tree-preview-image {
  margin-top: 16px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.tree-preview-image img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.tree-preview-text {
  margin-top: 16px;
  white-space: pre-wrap;
  color: #dce7f7;
  background: rgba(4, 10, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
}

.auth-discord {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

.panel-divider {
  margin: 22px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.selector-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-chip img,
.guild-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.guild-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(221, 171, 98, 0.2);
  color: var(--text);
  font-weight: 800;
  flex: 0 0 auto;
  box-shadow: 0 10px 26px rgba(2, 6, 12, 0.3);
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.guild-card:hover .guild-avatar {
  transform: scale(1.06);
  box-shadow: 0 16px 36px rgba(2, 6, 12, 0.42), 0 0 0 4px rgba(221, 171, 98, 0.1);
}

.toolbar-row {
  margin-bottom: 18px;
}

.search-field {
  display: grid;
  gap: 6px;
  max-width: 420px;
  color: var(--muted);
}

.guild-card__reason,
.muted-text {
  color: var(--muted);
}

.guild-card__metrics strong {
  transition: color 180ms ease, text-shadow 180ms ease;
}

.guild-card:hover .guild-card__metrics strong {
  color: #ffe4b6;
  text-shadow: 0 0 18px rgba(221, 171, 98, 0.18);
}

.ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.8fr) 110px minmax(120px, 0.8fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ticket-row span {
  color: var(--muted);
}

.transcript-box {
  overflow: auto;
  max-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  background: rgba(4, 10, 18, 0.58);
  color: #dce7f7;
  white-space: pre-wrap;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(119, 167, 255, 0.24);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(12, 22, 35, 0.94);
  color: var(--text);
  box-shadow: var(--shadow), var(--glow-blue);
  backdrop-filter: blur(18px);
  animation: toast-in 0.28s var(--ease-out) both;
}

.toast--success {
  border-color: rgba(125, 203, 142, 0.34);
  box-shadow: var(--shadow), 0 0 0 1px rgba(125, 203, 142, 0.18);
}

.toast--error {
  border-color: rgba(224, 123, 123, 0.36);
  box-shadow: var(--shadow), 0 0 0 1px rgba(224, 123, 123, 0.18);
}

.toast button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.toast--leaving {
  animation: toast-out 0.18s ease both;
}

.skeleton-card,
.skeleton-line {
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(119, 167, 255, 0.1), rgba(255, 255, 255, 0.05));
  background-size: 240% 100%;
  animation: skeleton-flow 1.4s ease infinite;
}

.skeleton-card {
  min-height: 140px;
}

.skeleton-line {
  min-height: 16px;
}

.auth-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    radial-gradient(circle, rgba(221, 171, 98, 0.3) 1px, transparent 1px);
  background-position: 0 0, 28px 34px;
  background-size: 84px 84px, 112px 112px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 78%);
}

.owner-shell {
  width: min(1320px, calc(100% - 40px));
  padding-top: 36px;
}

.owner-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 18, 30, 0.82);
  box-shadow: var(--shadow);
}

.owner-nav__title {
  display: grid;
  gap: 4px;
  min-width: 160px;
}

.owner-nav__title span {
  color: var(--accent-amber);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.owner-nav__title strong {
  color: var(--muted);
  font-size: 0.82rem;
}

.owner-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.owner-nav__link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.owner-nav__link:hover,
.owner-nav__link--active {
  transform: translateY(-2px);
  border-color: rgba(221, 171, 98, 0.38);
  background: rgba(221, 171, 98, 0.1);
  color: #ffe4b6;
}

.owner-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(119, 167, 255, 0.14), rgba(13, 22, 34, 0.94));
}

.owner-status-banner span,
.log-row span,
.log-row small {
  color: var(--muted);
}

.owner-status-banner strong {
  font-size: 1.2rem;
  color: var(--text);
}

.owner-status-banner--healthy {
  border-color: rgba(125, 203, 142, 0.28);
}

.owner-status-banner--degraded,
.owner-status-banner--unknown {
  border-color: rgba(221, 171, 98, 0.3);
}

.owner-status-banner--critical {
  border-color: rgba(224, 123, 123, 0.36);
}

.owner-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.owner-system-card {
  min-height: 160px;
}

.status-badge,
.permission-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-badge--healthy,
.permission-chip--ok {
  border-color: rgba(125, 203, 142, 0.28);
  background: rgba(125, 203, 142, 0.1);
  color: #b9f0c4;
}

.status-badge--degraded,
.status-badge--unknown {
  border-color: rgba(221, 171, 98, 0.28);
  background: rgba(221, 171, 98, 0.1);
  color: #ffe4b6;
}

.status-badge--critical,
.permission-chip--bad {
  border-color: rgba(224, 123, 123, 0.3);
  background: rgba(224, 123, 123, 0.1);
  color: #ffc4c4;
}

.permission-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.owner-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.owner-action-grid .button,
.owner-action-grid form {
  width: 100%;
}

.owner-action-grid .button {
  min-width: 0;
}

.log-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.log-row strong,
.log-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mono-link {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.panel-form--inline {
  display: grid;
  gap: 10px;
}

@media (max-width: 1180px) {
  .settings-form,
  .compact-form,
  .manage-row {
    grid-template-columns: 1fr;
  }

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

  .selector-header,
  .user-chip,
  .owner-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-nav__links {
    justify-content: flex-start;
  }

  .manage-row textarea,
  .manage-row input[name="reason"] {
    grid-column: auto;
  }

  .home-hero {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  body::before,
  .auth-shell::before {
    opacity: 0.18;
    filter: none;
    animation: none;
  }

  .panel-shell {
    width: min(100% - 20px, 1480px);
    gap: 14px;
    margin-top: 10px;
  }

  .sidebar,
  .topbar,
  .panel-card,
  .metric-card,
  .guild-card,
  .auth-card {
    border-radius: 18px;
  }

  .sidebar {
    padding: 18px;
  }

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

  .sidebar__nav a,
  .sidebar__back,
  .button,
  .owner-nav__link {
    min-height: 42px;
    padding: 10px 12px;
  }

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

  .toast-region {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .public-home,
  .home-footer {
    width: min(100% - 20px, 1180px);
  }

  .home-hero {
    padding: 28px;
  }

  .home-hero__moon {
    opacity: 0.32;
  }

  .home-actions,
  .home-footer,
  .home-footer nav,
  .home-team-card {
    align-items: stretch;
    flex-direction: column;
  }

  .home-actions .button {
    width: 100%;
  }

  .home-team-card {
    align-items: flex-start;
  }
}

.owl-mascot {
  --owl-size: 88px;
  display: inline-flex;
  width: var(--owl-size);
  height: var(--owl-size);
  flex: 0 0 auto;
  color: var(--hoot-accent, #f0b75d);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.25));
  transform-origin: 50% 80%;
}

.owl-mascot--small { --owl-size: 44px; }
.owl-mascot--medium { --owl-size: 76px; }
.owl-mascot--large { --owl-size: 118px; }
.owl-mascot--hero { --owl-size: clamp(140px, 20vw, 260px); }

.owl-mascot__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.owl-body { fill: #27314f; stroke: rgba(240, 183, 93, 0.45); stroke-width: 3; }
.owl-face { fill: #f6e7bf; }
.owl-wing { fill: #1b2440; transform-origin: 64px 68px; }
.owl-eye { fill: #f7c96a; }
.owl-pupil { fill: #111827; }
.owl-beak, .owl-feet, .owl-prop { fill: #e6a94c; }
.owl-lid, .owl-glasses, .owl-mark { fill: none; stroke: #12182b; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

.owl-mascot--happy .owl-eye,
.owl-mascot--celebrating .owl-eye { fill: #ffe08a; }
.owl-mascot--warning .owl-body,
.owl-mascot--moderator .owl-body { fill: #23394a; }
.owl-mascot--sad .owl-body { fill: #273044; }
.owl-mascot--developer .owl-body,
.owl-mascot--technical .owl-body,
.owl-mascot--guide .owl-body { fill: #29324f; }
.owl-mascot--privacy .owl-body { fill: #23384f; }

.owl-mascot--animated {
  animation: owlFloat 7s ease-in-out infinite;
}

.owl-mascot--animated .owl-pupil {
  animation: owlBlink 8s ease-in-out infinite;
  transform-origin: center;
}

.owl-card-companion:hover .owl-mascot,
.home-team-card:hover .owl-mascot,
.developer-card:hover .owl-mascot {
  transform: rotate(-3deg) translateY(-2px);
}

.owl-mascot--animated .owl-wing--left {
  animation: owlWingLeft 5.5s ease-in-out infinite;
}

.owl-mascot--animated .owl-wing--right {
  animation: owlWingRight 5.5s ease-in-out infinite;
}

.owl-corner-decoration {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 0;
  opacity: 0.38;
  pointer-events: none;
}

.site-footer .owl-mascot {
  margin-right: 4px;
  vertical-align: middle;
}

.owl-empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  color: var(--hoot-text-secondary, #a8b3cf);
}

.developer-card,
.home-team-card {
  position: relative;
  overflow: hidden;
}

.developer-card::after,
.home-team-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px auto;
  width: 34px;
  height: 10px;
  border-radius: 999px;
  background: rgba(240, 183, 93, 0.18);
}

.developer-avatar,
.home-team-card img,
.team-avatar {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid rgba(240, 183, 93, 0.7);
  box-shadow: 0 0 0 5px rgba(240, 183, 93, 0.12);
}

.developer-avatar-fallback,
.home-team-card__avatar {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 999px;
  border: 2px solid rgba(240, 183, 93, 0.7);
  background: rgba(25, 32, 55, 0.94);
}

.developer-card__meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.developer-card__name {
  overflow-wrap: anywhere;
  font-size: 1.15rem;
}

.developer-card__username {
  color: var(--hoot-text-secondary, #a8b3cf);
  overflow-wrap: anywhere;
}

.developer-card__badge {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(240, 183, 93, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--hoot-accent, #f0b75d);
  background: rgba(240, 183, 93, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.developer-card__button {
  align-self: center;
  white-space: nowrap;
}

.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero__owl {
  position: absolute;
  right: clamp(18px, 5vw, 76px);
  bottom: clamp(14px, 4vw, 42px);
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

.home-hero > *:not(.home-hero__owl) {
  position: relative;
  z-index: 1;
}

.home-feature-owl,
.forum-owl {
  display: flex;
  pointer-events: none;
}

.home-feature-owl {
  justify-content: center;
  margin-top: 18px;
}

.forum-owl {
  justify-content: flex-end;
  margin-bottom: 10px;
}

.forum-team-strip {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--hoot-border, rgba(168, 179, 207, 0.18));
}

.bump-ranking-shell {
  display: grid;
  gap: 26px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.bump-ranking-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 280px;
  overflow: hidden;
}

.bump-ranking-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5rem);
}

.bump-ranking-hero p {
  max-width: 760px;
  color: var(--hoot-text-secondary, #a8b3cf);
}

.bump-ranking-note,
.bump-ranking-reset {
  font-size: 0.92rem;
}

.bump-ranking-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.bump-ranking-stats article,
.bump-podium-card {
  border: 1px solid var(--hoot-border, rgba(168, 179, 207, 0.18));
  border-radius: var(--hoot-radius-medium, 18px);
  background: rgba(20, 27, 48, 0.82);
  box-shadow: var(--hoot-shadow-soft, 0 18px 45px rgba(0, 0, 0, 0.28));
}

.bump-ranking-stats article {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.bump-ranking-stats span,
.bump-ranking-reset {
  color: var(--hoot-text-secondary, #a8b3cf);
}

.bump-ranking-stats strong {
  font-size: 1.45rem;
}

.bump-ranking-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}

.segmented-control {
  display: inline-flex;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--hoot-border, rgba(168, 179, 207, 0.18));
  border-radius: 999px;
  background: rgba(16, 22, 39, 0.76);
}

.segmented-control a {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--hoot-text-secondary, #a8b3cf);
  text-decoration: none;
}

.segmented-control a.active {
  color: #1b160c;
  background: var(--hoot-accent, #f0b75d);
}

.bump-podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  align-items: end;
}

.bump-podium-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 190px;
  padding: 18px;
  text-align: center;
}

.bump-podium-card--1 {
  min-height: 220px;
  border-color: rgba(240, 183, 93, 0.72);
}

.bump-podium-card--2 {
  border-color: rgba(190, 204, 220, 0.58);
}

.bump-podium-card--3 {
  border-color: rgba(205, 139, 82, 0.58);
}

.bump-ranking-list {
  display: grid;
  gap: 16px;
}

.bump-ranking-table {
  display: grid;
  gap: 8px;
}

.bump-ranking-row {
  display: grid;
  grid-template-columns: 70px minmax(190px, 1fr) repeat(5, minmax(82px, auto));
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(168, 179, 207, 0.12);
  border-radius: 14px;
  background: rgba(12, 18, 34, 0.44);
}

.bump-ranking-row--head {
  color: var(--hoot-text-secondary, #a8b3cf);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bump-ranking-identity {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
}

.bump-ranking-identity img,
.bump-ranking-avatar-fallback {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}

.bump-ranking-avatar-fallback {
  display: grid;
  place-items: center;
  background: rgba(240, 183, 93, 0.1);
}

.bump-ranking-identity strong,
.bump-ranking-identity small {
  display: block;
  overflow-wrap: anywhere;
}

.bump-ranking-identity small {
  color: var(--hoot-text-secondary, #a8b3cf);
}

.bump-rank-badge {
  display: inline-flex;
  width: fit-content;
  min-width: 42px;
  justify-content: center;
  border: 1px solid rgba(240, 183, 93, 0.4);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--hoot-accent, #f0b75d);
  background: rgba(240, 183, 93, 0.08);
  font-weight: 900;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
}

@media (max-width: 860px) {
  .bump-ranking-hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .bump-ranking-hero__owl {
    justify-self: center;
  }

  .bump-ranking-row,
  .bump-ranking-row--head {
    grid-template-columns: 1fr;
  }

  .bump-ranking-row--head {
    display: none;
  }
}

@keyframes owlFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(1.5deg); }
}

@keyframes owlBlink {
  0%, 93%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.08); }
}

@keyframes owlWingLeft {
  0%, 88%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(7deg); }
}

@keyframes owlWingRight {
  0%, 88%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(-7deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .button:hover,
  .guild-card:hover,
  .metric-card:hover,
  .panel-card:hover,
  .transaction-card:hover,
  .event-row:hover,
  .absence-row:hover,
  .ticket-row:hover,
  .manage-row:hover,
  .mini-table div:hover,
  .sidebar__nav a:hover,
  .sidebar__back:hover,
  .home-nav-card:hover {
    transform: none !important;
  }

  .owl-mascot,
  .owl-mascot *,
  .owl-card-companion:hover .owl-mascot,
  .home-team-card:hover .owl-mascot,
  .developer-card:hover .owl-mascot {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 720px) {
  .home-hero__owl {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 18px;
    opacity: 1;
  }

  .home-hero__owl .owl-mascot {
    --owl-size: min(42vw, 150px);
  }

  .owl-corner-decoration {
    display: none;
  }

  .developer-card__button {
    justify-self: stretch;
    text-align: center;
    width: 100%;
  }

  .forum-owl {
    justify-content: center;
  }
}
