@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap");

:root {
  --bg-dark: #0a0a1b;
  --bg-panel: rgba(18, 16, 40, 0.92);
  --bg-panel-soft: rgba(24, 20, 52, 0.75);
  --text-main: #f5f5f3;
  --text-muted: #a5aec7;
  --accent: #4aa3ff;
  --gold: #f2d07c;
  --shadow: 0 18px 40px rgba(6, 6, 18, 0.55);
  --page-bg: radial-gradient(circle at 20% 0%, #2a164b, #14122c 42%, #0a0a1b 70%);
  --page-overlay:
    radial-gradient(circle at 80% 10%, rgba(186, 83, 255, 0.18), transparent 45%),
    radial-gradient(circle at 20% 30%, rgba(88, 136, 255, 0.15), transparent 50%),
    linear-gradient(120deg, rgba(255, 120, 220, 0.08), transparent 60%);
  --month-controls-bg: rgba(18, 18, 40, 0.65);
  --ghost-bg: rgba(255, 255, 255, 0.08);
  --primary-bg: #2f5fb8;
  --calendar-panel-bg: linear-gradient(160deg, rgba(18, 16, 40, 0.95), rgba(34, 22, 58, 0.9));
  --calendar-cell-bg: rgba(255, 255, 255, 0.03);
  --highlighted-item-bg: linear-gradient(160deg, rgba(20, 18, 42, 0.9), rgba(32, 22, 56, 0.85));
  --event-card-bg: #101827;
  --event-card-next-border: rgba(74, 163, 255, 0.25);
  --modal-bg: linear-gradient(160deg, rgba(18, 16, 40, 0.98), rgba(34, 22, 58, 0.96));
  --modal-media-bg: radial-gradient(circle at top, rgba(90, 120, 255, 0.45), rgba(10, 12, 28, 0.9));
  --poll-bar-bg: linear-gradient(90deg, rgba(46, 28, 88, 0.6), rgba(128, 58, 146, 0.55));
  --poll-bar-border: rgba(237, 122, 214, 0.9);
  --poll-bar-after-border: rgba(255, 170, 238, 0.8);
  --poll-bar-after-shadow: inset 0 0 12px rgba(255, 160, 230, 0.35),
    0 0 16px rgba(255, 120, 220, 0.4);
  --poll-bar-sheen: linear-gradient(90deg,
    rgba(255, 130, 220, 0.08),
    rgba(120, 170, 255, 0.2),
    rgba(255, 130, 220, 0.08));
  --poll-bar-text-shadow: 0 0 10px rgba(160, 120, 255, 0.5);
  --poll-icon-bg: rgba(110, 70, 170, 0.6);
  --poll-panel-bg: linear-gradient(160deg, rgba(16, 14, 38, 0.98), rgba(88, 34, 110, 0.92));
  --poll-question-gradient: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(210, 165, 255, 0.92));
  --poll-option-bg: rgba(10, 10, 28, 0.78);
  --announcement-bar-bg: linear-gradient(90deg, rgba(22, 38, 86, 0.7), rgba(40, 76, 148, 0.6));
  --announcement-bar-border: rgba(74, 163, 255, 0.85);
  --announcement-bar-after-border: rgba(120, 200, 255, 0.75);
  --announcement-bar-after-shadow: inset 0 0 12px rgba(120, 200, 255, 0.3),
    0 0 16px rgba(90, 160, 255, 0.35);
  --announcement-bar-sheen: linear-gradient(90deg,
    rgba(120, 200, 255, 0.08),
    rgba(90, 160, 255, 0.25),
    rgba(120, 200, 255, 0.08));
  --announcement-icon-bg: rgba(58, 108, 190, 0.55);
  --event-card-fallback: linear-gradient(135deg, rgba(47, 137, 255, 0.35), rgba(244, 212, 124, 0.2));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background: var(--page-bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--page-overlay);
  pointer-events: none;
}

body.theme-soft {
  --bg-dark: #0e1413;
  --bg-panel: rgba(20, 30, 30, 0.92);
  --bg-panel-soft: rgba(22, 34, 34, 0.75);
  --text-main: #eef4f3;
  --text-muted: #b9c9c6;
  --accent: #5cc8a1;
  --gold: #e7c98b;
  --shadow: 0 18px 40px rgba(6, 10, 16, 0.45);
  --page-bg: radial-gradient(circle at 15% 0%, #1c2f2c, #121c1a 45%, #0e1413 75%);
  --page-overlay:
    radial-gradient(circle at 75% 10%, rgba(120, 210, 180, 0.14), transparent 45%),
    radial-gradient(circle at 20% 35%, rgba(120, 170, 160, 0.12), transparent 55%),
    linear-gradient(120deg, rgba(230, 210, 150, 0.08), transparent 60%);
  --month-controls-bg: rgba(18, 28, 28, 0.65);
  --ghost-bg: rgba(255, 255, 255, 0.1);
  --primary-bg: #2f6a5c;
  --calendar-panel-bg: linear-gradient(160deg, rgba(18, 28, 28, 0.95), rgba(24, 40, 38, 0.9));
  --calendar-cell-bg: rgba(255, 255, 255, 0.04);
  --highlighted-item-bg: linear-gradient(160deg, rgba(20, 30, 30, 0.9), rgba(28, 42, 40, 0.85));
  --event-card-bg: #0f1b1a;
  --event-card-next-border: rgba(92, 200, 161, 0.3);
  --modal-bg: linear-gradient(160deg, rgba(18, 28, 28, 0.98), rgba(28, 42, 40, 0.96));
  --modal-media-bg: radial-gradient(circle at top, rgba(92, 200, 161, 0.45), rgba(10, 12, 18, 0.9));
  --poll-bar-bg: linear-gradient(90deg, rgba(22, 46, 44, 0.6), rgba(46, 84, 78, 0.55));
  --poll-bar-border: rgba(92, 200, 161, 0.9);
  --poll-bar-after-border: rgba(140, 230, 200, 0.8);
  --poll-bar-after-shadow: inset 0 0 12px rgba(120, 210, 180, 0.35),
    0 0 16px rgba(92, 200, 161, 0.4);
  --poll-bar-sheen: linear-gradient(90deg,
    rgba(120, 210, 180, 0.08),
    rgba(120, 170, 210, 0.18),
    rgba(120, 210, 180, 0.08));
  --poll-bar-text-shadow: 0 0 10px rgba(120, 210, 180, 0.45);
  --poll-icon-bg: rgba(70, 150, 130, 0.6);
  --poll-panel-bg: linear-gradient(160deg, rgba(14, 26, 24, 0.98), rgba(36, 72, 66, 0.92));
  --poll-question-gradient: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(180, 230, 210, 0.9));
  --poll-option-bg: rgba(10, 18, 18, 0.78);
  --announcement-bar-bg: linear-gradient(90deg, rgba(22, 44, 42, 0.7), rgba(36, 72, 66, 0.6));
  --announcement-bar-border: rgba(92, 200, 161, 0.85);
  --announcement-bar-after-border: rgba(140, 230, 200, 0.75);
  --announcement-bar-after-shadow: inset 0 0 12px rgba(120, 210, 180, 0.3),
    0 0 16px rgba(92, 200, 161, 0.35);
  --announcement-bar-sheen: linear-gradient(90deg,
    rgba(120, 210, 180, 0.08),
    rgba(92, 200, 161, 0.25),
    rgba(120, 210, 180, 0.08));
  --announcement-icon-bg: rgba(58, 140, 120, 0.55);
  --event-card-fallback: linear-gradient(135deg, rgba(92, 200, 161, 0.35), rgba(231, 201, 139, 0.2));
}

body.theme-soft::before {
  background: var(--page-overlay);
}

.page {
  position: relative;
  padding: 32px 40px 48px;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

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

.brand-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 26px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.brand-sub-sub {
  font-size: 12px;
  color: #9fd0ff;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.brand-sub-sub.brand-link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.brand-sub-sub:hover {
  color: #c3e2ff;
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-btn {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: #2a164b;
  cursor: pointer;
  padding: 0;
}

.theme-btn.theme-default {
  background: radial-gradient(circle at 30% 30%, #7c5cff, #2a164b);
}

.theme-btn.theme-soft {
  background: radial-gradient(circle at 30% 30%, #8cc4ff, #1a2a3a);
}

.theme-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.brand-link {
  text-decoration: none;
  color: #f6f6fb;
  transition: color 0.2s ease;
}

.brand-link:hover {
  color: #ffffff;
}

.month-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--month-controls-bg);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.month-label {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ghost-btn,
.primary-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.ghost-btn {
  background: var(--ghost-bg);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 999px;
}

.primary-btn {
  background: var(--primary-bg);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
}

.admin-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(244, 212, 124, 0.6);
  padding-bottom: 2px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(250px, 320px) 1fr;
  gap: 28px;
}

.calendar-panel {
  background: var(--calendar-panel-bg);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

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

.panel-title {
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.panel-meta {
  color: var(--text-muted);
  font-size: 13px;
}

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  gap: 8px;
  text-align: center;
  justify-items: center;
}

.weekday-row span {
  display: grid;
  place-items: center;
  min-height: 38px;
  width: 100%;
}

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

.calendar-cell {
  position: relative;
  background: var(--calendar-cell-bg);
  border-radius: 10px;
  min-height: 38px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.calendar-cell.active {
  color: var(--text-main);
  font-weight: 600;
}

.calendar-cell .dots {
  position: absolute;
  bottom: 6px;
  display: flex;
  gap: 4px;
}

.calendar-cell .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.highlighted {
  margin-top: 20px;
}

.highlighted h3 {
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.highlighted-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.highlighted-item {
  background: var(--highlighted-item-bg);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.highlighted-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 10, 20, 0.35);
}

.highlighted-date {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.highlighted-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.highlighted-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cards-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.announcement-wrapper {
  display: none;
  gap: 18px;
}

.announcement-bar {
  border-color: var(--announcement-bar-border);
  background: var(--announcement-bar-bg);
  box-shadow: 0 10px 28px rgba(9, 12, 30, 0.45),
    0 0 18px rgba(90, 160, 255, 0.35);
}

.announcement-bar::after {
  border-color: var(--announcement-bar-after-border);
  box-shadow: var(--announcement-bar-after-shadow);
}

.announcement-bar::before {
  background: var(--announcement-bar-sheen);
}

.announcement-bar .poll-bar-icon {
  background: var(--announcement-icon-bg);
  box-shadow: inset 0 0 12px rgba(120, 200, 255, 0.35);
}

.announcement-disabled {
  opacity: 0.7;
  pointer-events: none;
}
.poll-wrapper {
  display: none;
  gap: 18px;
}

.poll-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--poll-bar-border);
  background: var(--poll-bar-bg);
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 0.6px;
  box-shadow: 0 10px 28px rgba(9, 6, 20, 0.45),
    0 0 18px rgba(220, 100, 200, 0.35);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(6px);
}

.poll-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--poll-bar-after-border);
  box-shadow: var(--poll-bar-after-shadow);
  opacity: 0.75;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  animation: pollPulse 3.4s ease-in-out infinite;
}

.poll-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--poll-bar-sheen);
  background-size: 220% 220%;
  opacity: 0.9;
  animation: pollSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.poll-bar:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(12, 8, 30, 0.65),
    0 0 24px rgba(230, 110, 210, 0.55);
}

.poll-bar.open {
  box-shadow: 0 22px 50px rgba(12, 8, 30, 0.7),
    0 0 28px rgba(230, 110, 210, 0.65);
}

.poll-bar.open::after {
  opacity: 1;
}

.poll-bar::marker {
  content: "";
}

.poll-bar-text::after {
  content: "";
  display: block;
  height: 2px;
  width: 0%;
  margin-top: 4px;
  background: linear-gradient(90deg, rgba(255, 160, 230, 0), rgba(255, 160, 230, 0.7), rgba(255, 160, 230, 0));
  transition: width 0.3s ease;
}

.poll-bar:hover .poll-bar-text::after {
  width: 100%;
}

.poll-bar-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--poll-icon-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
  box-shadow: inset 0 0 12px rgba(255, 150, 230, 0.35);
  animation: pollWiggle 2.8s ease-in-out infinite;
}

.poll-bar-text {
  flex: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: var(--poll-bar-text-shadow);
}

.poll-bar-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  font-weight: 500;
}

.poll-bar-arrow {
  font-size: 22px;
  transition: transform 0.2s ease;
  opacity: 0.9;
}

.poll-bar.open .poll-bar-arrow {
  transform: rotate(90deg);
}

.poll-panel {
  display: none;
  background: var(--poll-panel-bg);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 30px 70px rgba(6, 6, 20, 0.75), 0 0 24px rgba(150, 90, 220, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: rise 0.5s ease both;
}

.poll-panel.open {
  display: grid;
  gap: 16px;
}

.poll-panel-header {
  display: grid;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.poll-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  cursor: pointer;
  justify-self: start;
}

.poll-question {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: var(--poll-question-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.poll-options {
  display: grid;
  gap: 14px;
}

.poll-option {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--poll-option-bg);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poll-option-selected {
  border-color: var(--poll-accent, #6aa7ff);
  box-shadow: 0 0 0 2px var(--poll-accent, #6aa7ff), 0 16px 30px rgba(10, 8, 20, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.poll-option-action {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poll-option-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(10, 8, 20, 0.4);
}

.poll-option-card {
  width: 130px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 10px 24px rgba(5, 4, 16, 0.6);
}

.poll-option-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poll-option-title {
  font-size: 16px;
  font-weight: 600;
}

.poll-option-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.poll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.poll-progress {
  position: relative;
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.poll-progress-bar {
  height: 100%;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.poll-option-percent {
  font-size: 21px;
  font-weight: 600;
}

.poll-footer {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding-top: 4px;
}

.poll-bar,
.poll-panel,
.poll-option {
  animation: glowIn 0.6s ease both;
}

@keyframes glowIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes pollSweep {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pollPulse {
  0%,
  100% {
    box-shadow: inset 0 0 12px rgba(255, 160, 230, 0.35),
      0 0 14px rgba(255, 120, 220, 0.35);
  }
  50% {
    box-shadow: inset 0 0 16px rgba(255, 160, 230, 0.55),
      0 0 22px rgba(255, 120, 220, 0.6);
  }
}

@keyframes pollWiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(-6deg);
  }
  60% {
    transform: rotate(6deg);
  }
}

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

.event-card {
  position: relative;
  min-height: 210px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--event-card-bg);
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  animation: rise 0.6s ease both;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.event-card-next {
  border: 1px solid var(--event-card-next-border);
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.05), rgba(7, 10, 18, 0.85));
  z-index: 1;
}

.event-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.event-card-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.event-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.event-title {
  font-size: 20px;
  font-weight: 600;
}

.event-date {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.event-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.empty-state {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 8, 20, 0.72);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.modal-backdrop.open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(820px, 96vw);
  border-radius: 26px;
  overflow: hidden;
  background: var(--modal-bg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px rgba(6, 6, 20, 0.75);
  animation: modalIn 0.35s ease both;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 2;
}

.modal-media {
  width: 100%;
  height: 230px;
  background: var(--modal-media-bg);
}

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

.modal-content {
  padding: 22px 24px 26px;
  display: grid;
  gap: 12px;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
}

.modal-desc,
.modal-long {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-line;
}

.modal-long {
  color: #d6dcef;
}

.admin-body {
  background: radial-gradient(circle at top, #1d2a3f, #0b0f1a 55%, #070a12);
}

.suggestion-body {
  background: radial-gradient(circle at top, #20113f, #0b0f1a 55%, #070a12);
}

.suggestion-layout {
  display: flex;
  justify-content: center;
}

.suggestion-card {
  width: min(900px, 100%);
  background: linear-gradient(135deg, rgba(44, 20, 78, 0.92), rgba(168, 47, 95, 0.85));
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
}

.suggestion-card h2 {
  margin-top: 0;
  text-align: center;
  font-size: 18px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.suggestion-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.suggestion-types {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 680px) {
  .suggestion-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .suggestion-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.suggestion-types input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.type-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  padding: 8px;
}

.type-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.type-label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-align: center;
}

.type-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.suggestion-types input:checked + .type-card {
  border-color: rgba(244, 212, 124, 0.8);
  box-shadow: 0 14px 30px rgba(15, 6, 20, 0.45);
  transform: translateY(-4px);
}

.suggestion-types input:checked + .type-card .type-check {
  background: var(--gold);
  border-color: var(--gold);
}

.field-label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.suggestion-card textarea,
.suggestion-card input {
  background: rgba(8, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.suggestion-submit {
  justify-self: center;
  min-width: 180px;
}

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

.admin-card {
  background: var(--bg-panel);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
}

.admin-card h2 {
  margin-top: 0;
}

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

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

input,
textarea {
  background: rgba(10, 15, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-text {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.status-success {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.8px;
  color: #ffe7ff;
  padding: 14px 18px;
  margin-top: 16px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(120, 60, 150, 0.45), rgba(230, 88, 180, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 30px rgba(12, 8, 24, 0.5);
  animation: successPop 0.6s ease both;
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-events {
  display: grid;
  gap: 12px;
}

.admin-event {
  background: var(--bg-panel-soft);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.admin-event[data-selectable="true"] {
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-event-selected {
  background: rgba(74, 163, 255, 0.22) !important;
  border-color: rgba(74, 163, 255, 0.65) !important;
  box-shadow: 0 0 0 1px rgba(74, 163, 255, 0.35);
}

.admin-event-title {
  font-weight: 600;
}

.admin-event .muted {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-suggestions .suggestion-text,
.admin-suggestions .suggestion-link-row {
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  word-break: break-word;
}

.admin-suggestions .suggestion-link {
  color: var(--accent);
  text-decoration: underline;
}

.admin-suggestions .suggestion-link:hover {
  color: #7bbcff;
}

.admin-confessions .admin-event .muted {
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
}

.admin-event-actions {
  display: flex;
  gap: 8px;
}

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

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

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

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

  .panel-title-row {
    width: 100%;
  }

  .poll-option {
    grid-template-columns: 1fr;
  }

  .poll-option-card {
    width: 100%;
    height: 140px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 24px;
  }

  .calendar-panel {
    padding: 18px;
  }

  .event-card {
    min-height: 180px;
  }
}
