:root {
  --ccs-orange: #ff6802;
  --ccs-black: #000000;
  --ccs-white: #ffffff;
  --ccs-grey: #b8babc;
  --radius: 16px;
  --bg: #f5f5f5;
  --panel: #ffffff;
  --panel-soft: #fafafa;
  --card: #fdfdfd;
  --text: #101010;
  --muted: #444444;
  --border: rgba(0, 0, 0, 0.06);
  --pill: rgba(184, 186, 188, 0.2);
  --shortcut-bg: #f4f4f4;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  --bg-image: none;
  --accent-pattern: repeating-linear-gradient(
      135deg,
      rgba(184, 186, 188, 0.08),
      rgba(184, 186, 188, 0.08) 12px,
      transparent 12px,
      transparent 24px
    );
}

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

body {
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  padding: 32px;
}

.no-scroll {
  overflow: hidden;
}

.blur-background .background-accent,
.blur-background .hero,
.blur-background .content,
.blur-background .hero-bar {
  filter: blur(4px);
}

.lights-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow);
}

.auth-guard {
  position: fixed;
  inset: 0;
  background: rgba(245, 245, 245, 0.96);
  display: grid;
  place-items: center;
  z-index: 999;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-guard[hidden] {
  display: none !important;
}

.background-accent {
  position: fixed;
  inset: 0;
  background: var(--bg-image), var(--accent-pattern);
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.lightrope {
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  margin: -10px 0 0 0;
  padding: 0;
  pointer-events: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.lightrope[hidden] {
  display: none !important;
}

.lightrope li {
  position: relative;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
  width: 12px;
  height: 28px;
  border-radius: 50%;
  margin: 20px 0;
  background: #ff6802;
  box-shadow: 0px 4px 24px 3px rgba(255, 104, 2, 1);
  animation-name: flash-orange;
  animation-duration: 2.4s;
}

.lightrope li:nth-child(2n+1) {
  background: #ffffff;
  box-shadow: 0px 4px 24px 3px rgba(255, 255, 255, 0.9);
  animation-name: flash-white;
  animation-duration: 2s;
}

.lightrope li:before {
  content: "";
  position: absolute;
  background: #222;
  width: 10px;
  height: 9px;
  border-radius: 3px;
  top: -4px;
  left: 1px;
}

.lightrope li:after {
  content: "";
  top: -14px;
  left: 9px;
  position: absolute;
  width: 52px;
  height: 18px;
  border-bottom: solid #222 2px;
  border-radius: 50%;
}

.lightrope li:last-child:after {
  content: none;
}

.lightrope li:first-child {
  margin-left: -20px;
}

@keyframes flash-1 {
  0%, 100% {
    background: rgba(0, 247, 165, 1);
    box-shadow: 0px 4px 24px 3px rgba(0, 247, 165, 1);
  }
  50% {
    background: rgba(0, 247, 165, 0.4);
    box-shadow: 0px 4px 24px 3px rgba(0, 247, 165, 0.2);
  }
}

@keyframes flash-2 {
  0%, 100% {
    background: rgba(0, 255, 255, 1);
    box-shadow: 0px 4px 24px 3px rgba(0, 255, 255, 1);
  }
  50% {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0px 4px 24px 3px rgba(0, 255, 255, 0.2);
  }
}

@keyframes flash-3 {
  0%, 100% {
    background: rgba(247, 0, 148, 1);
    box-shadow: 0px 4px 24px 3px rgba(247, 0, 148, 1);
  }
  50% {
    background: rgba(247, 0, 148, 0.4);
    box-shadow: 0px 4px 24px 3px rgba(247, 0, 148, 0.2);
  }
}

@keyframes flash-orange {
  0%, 100% {
    background: #ff6802;
    box-shadow: 0px 4px 24px 3px rgba(255, 104, 2, 1);
  }
  50% {
    background: rgba(255, 104, 2, 0.4);
    box-shadow: 0px 4px 24px 3px rgba(255, 104, 2, 0.2);
  }
}

@keyframes flash-white {
  0%, 100% {
    background: #ffffff;
    box-shadow: 0px 4px 24px 3px rgba(255, 255, 255, 0.9);
  }
  50% {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0px 4px 24px 3px rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 640px) {
  .lightrope li:nth-child(n+15) {
    display: none;
  }
}

.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto 8px;
  padding: 0;
  position: relative;
  z-index: 3;
}

.hero-logo {
  width: 130px;
  height: 60px;
  object-fit: contain;
  margin: 0;
}

.eyebrow-right {
  margin: 0;
}

.greeting-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.greeting-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 104, 2, 0.12);
  border: 1px solid rgba(255, 104, 2, 0.35);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--ccs-black);
  overflow: hidden;
  flex-shrink: 0;
}

.greeting-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto 28px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.brand-copy h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-copy .subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
  color: var(--ccs-orange);
}

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

.dropdown {
  position: relative;
}

.dropdown-toggle {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  font-size: 14px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 20;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.dropdown-menu a {
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.dropdown-menu .menu-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  width: 100%;
}

.menu-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 104, 2, 0.12);
  border: 1px solid rgba(255, 104, 2, 0.35);
  display: grid;
  place-items: center;
  padding: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.menu-label {
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-menu a:hover {
  background: rgba(255, 104, 2, 0.08);
  color: var(--ccs-orange);
}

.dropdown.open .dropdown-menu {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

.social-links {
  display: inline-flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  align-items: center;
  margin: 24px auto 16px;
  width: 100%;
  max-width: 320px;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.social-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 104, 2, 0.5);
}

.social-links i {
  font-size: 18px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ccs-orange);
  color: var(--ccs-white);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border);
  font-size: 15px;
}

.cta.ghost {
  background: var(--ccs-black);
  color: var(--ccs-white);
}

.content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 15px;
  box-shadow: var(--shadow);
}

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

.panel-head.compact {
  margin-top: 12px;
  margin-bottom: 10px;
}

.panel h2 {
  margin: 0;
  color: var(--text);
}

.count {
  background: rgba(255, 104, 2, 0.12);
  color: var(--ccs-orange);
  border: 1px solid rgba(255, 104, 2, 0.25);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}

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

.support-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.support-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 104, 2, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.support-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #000;
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
}

.support-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.support-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.support-title {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.support-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  justify-items: center;
}

.link-icon {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 12px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.link-icon:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 104, 2, 0.5);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 104, 2, 0.12);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ccs-orange);
  border: 1px solid rgba(255, 104, 2, 0.35);
}

.logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 104, 2, 0.12);
  border: 1px solid rgba(255, 104, 2, 0.35);
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark {
  width: 80%;
  height: 80%;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  display: block;
}

.title {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.link-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.panel-block {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.list a {
  color: var(--text);
  text-decoration: underline;
}

.list a:hover {
  color: var(--ccs-orange);
}

.event-item {
  cursor: pointer;
}

.event-item:focus {
  outline: 2px solid rgba(255, 104, 2, 0.6);
  outline-offset: 2px;
}

.pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--pill);
  color: var(--text);
  font-weight: 700;
}

.pill.accent {
  background: rgba(255, 104, 2, 0.12);
  color: var(--ccs-orange);
  border: 1px solid rgba(255, 104, 2, 0.35);
}

.pill.pending {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}

.pill.cancelled {
  background: rgba(255, 0, 0, 0.12);
  color: #b00020;
  border: 1px solid rgba(255, 0, 0, 0.25);
}

.event-item.past {
  opacity: 0.55;
}

.invite-actions {
  font-size: 13px;
  margin-top: 4px;
}

.invite-actions a {
  color: var(--ccs-orange);
  text-decoration: none;
}

.invite-actions a:hover {
  text-decoration: underline;
}

.committee-block {
  margin-top: 8px;
  padding: 10px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.committee-block .list {
  margin: 0;
}

#committee-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--panel);
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text);
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 104, 2, 0.12);
  color: var(--ccs-black);
  font-weight: 800;
  border: 1px solid rgba(255, 104, 2, 0.35);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 104, 2, 0.12);
  color: var(--ccs-orange);
  border: 1px solid rgba(255, 104, 2, 0.25);
  font-size: 12px;
  font-weight: 700;
}

.name-email {
  color: var(--text);
  text-decoration: none;
}

.name-email:hover {
  text-decoration: underline;
}

.search {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 4px 10px;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 8px 4px;
  font-size: 15px;
  outline: none;
}

.search-box input::placeholder {
  color: var(--muted);
}

.shortcut {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 6px;
  background: var(--shortcut-bg);
}

.footer-note {
  margin: 12px 0 0;
  text-align: right;
  color: var(--muted);
}

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

.pagination button {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .pages {
  color: var(--muted);
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal {
  position: relative;
  background: var(--panel);
  color: var(--text);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 18px 18px 12px;
  width: min(520px, 95vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow);
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.modal-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 104, 2, 0.12);
  color: var(--ccs-black);
  font-weight: 800;
  border: 1px solid rgba(255, 104, 2, 0.35);
  overflow: hidden;
  font-size: 18px;
}

.modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-name {
  margin: 0;
  font-weight: 800;
  font-size: 20px;
}

.modal-title {
  margin: 4px 0 0;
  color: var(--muted);
}

.modal-body {
  display: grid;
  gap: 10px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.modal-action {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  margin-top: 10px;
}

.modal-action.primary {
  border-color: rgba(255, 104, 2, 0.35);
  background: rgba(255, 104, 2, 0.12);
  color: var(--ccs-orange);
}

.modal-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: var(--muted);
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: var(--panel);
  color: var(--text);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.modal-field {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.modal-field:last-child {
  border-bottom: none;
}

.label {
  color: var(--muted);
  font-size: 13px;
}


@media (max-width: 820px) {
  body {
    padding: 20px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .hero-bar {
    padding: 0;
  }

  .hero-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cta {
    flex: 1;
    justify-content: center;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 100%;
    box-shadow: none;
    margin-top: 6px;
  }

  .modal {
    width: 100%;
    max-height: 85vh;
  }
}


@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --panel: #121212;
    --panel-soft: #181818;
    --card: #161616;
    --text: #f5f5f7;
    --muted: #c8c8d0;
    --border: rgba(255, 255, 255, 0.08);
    --pill: rgba(255, 255, 255, 0.08);
    --shortcut-bg: rgba(255, 255, 255, 0.08);
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    --accent-pattern: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 12px,
        transparent 12px,
        transparent 24px
      );
  }

  .cta.ghost {
    background: #1f1f2a;
    color: var(--ccs-white);
  }

  .avatar {
    background: rgba(255, 104, 2, 0.2);
    color: var(--text);
  }
}
