@charset "UTF-8";

/* Load Layiji Mahaniyom 1.5 Web Fonts directly from files */
@font-face {
  font-family: 'Layiji Mahaniyom V1.5';
  src: url('/fonts/LayijiMahaniyomV105.ttf') format('truetype'),
       url('/fonts/LayijiMahaniyomV105ot.otf') format('opentype'),
       local('Layiji Mahaniyom V1.5'),
       local('Layiji Mahaniyom 1.5'),
       local('LayijiMahaniyomV105');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Layiji Mahaniyom V1.5';
  src: url('/fonts/LayijiMahaniyomV105.ttf') format('truetype'),
       url('/fonts/LayijiMahaniyomV105ot.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Layiji Mahaniyom V1.5';
  src: url('/fonts/LayijiMahaniyomV105.ttf') format('truetype'),
       url('/fonts/LayijiMahaniyomV105ot.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Layiji Mahaniyom V1.5';
  src: url('/fonts/LayijiMahaniyomV105.ttf') format('truetype'),
       url('/fonts/LayijiMahaniyomV105ot.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg-main: #0c0817;
  --bg-card: #1c1530;
  --bg-card-hover: #2a2046;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #c9c3e0;
  --text-muted: #958cae;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 9999px;
  --transition-smooth: all 0.2s ease-in-out;
}

html {
  font-size: 19px;
}

@media (max-width: 1024px) {
  html {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }
}

/* Global Box Sizing & Font Setup */
*,
*::before,
*::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after,
html,
body,
button,
input,
select,
textarea,
optgroup,
option,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
div,
label,
table,
th,
td {
  font-family: 'Layiji Mahaniyom V1.5', 'LayijiMahaniyom', sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.55;
  font-size: 1.15rem;
}

/* Homepage No-Scroll Fix */
body.page-home {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden !important;
}

/* Dynamic Moving Cosmic Background */
.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: 
    radial-gradient(circle at 50% 20%, rgba(65, 24, 110, 0.45) 0%, transparent 65%),
    radial-gradient(circle at 15% 85%, rgba(30, 14, 60, 0.5) 0%, transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(45, 17, 75, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, #090613 0%, #0d091b 50%, #080512 100%);
}

.cosmic-orb-1 {
  position: absolute;
  top: -10%;
  left: 30%;
  width: 65vw;
  height: 65vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 26, 128, 0.35) 0%, rgba(45, 13, 80, 0.1) 50%, transparent 70%);
  filter: blur(40px);
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.cosmic-orb-2 {
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 15, 80, 0.4) 0%, rgba(20, 8, 45, 0.15) 50%, transparent 70%);
  filter: blur(50px);
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.cosmic-orb-3 {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 20, 75, 0.3) 0%, rgba(35, 10, 50, 0.1) 50%, transparent 70%);
  filter: blur(45px);
  animation: floatOrb3 20s ease-in-out infinite alternate;
}

.cosmic-stars {
  position: absolute;
  inset: -50px;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 20%, #ffffff 100%, transparent),
    radial-gradient(1.2px 1.2px at 35% 45%, rgba(255, 255, 255, 0.8) 100%, transparent),
    radial-gradient(2.2px 2.2px at 75% 15%, #ffd166 100%, transparent),
    radial-gradient(1.8px 1.8px at 85% 65%, #c77dff 100%, transparent),
    radial-gradient(1.5px 1.5px at 50% 80%, rgba(255, 255, 255, 0.9) 100%, transparent),
    radial-gradient(1.2px 1.2px at 20% 90%, rgba(255, 255, 255, 0.6) 100%, transparent),
    radial-gradient(1.8px 1.8px at 60% 30%, rgba(255, 255, 255, 0.8) 100%, transparent),
    radial-gradient(2.5px 2.5px at 90% 40%, rgba(255, 200, 80, 0.9) 100%, transparent);
  background-repeat: repeat;
  background-size: 360px 360px;
  animation: driftStars 60s linear infinite;
  opacity: 0.5;
}

/* Main Container */
.main-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Homepage Specific Layout (Fit Viewport, No Scroll) */
.home-content {
  height: 100vh;
  max-height: 100vh;
  padding: 1.5rem 1.5rem 0 1.5rem !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden !important;
}

.home-top-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Slot Machine Logo */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.9rem;
  text-align: center;
  width: 100%;
}

.slot-logo {
  max-width: 360px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.7));
  transition: transform 0.25s ease;
}

.slot-logo:hover {
  transform: scale(1.03);
}

/* Typography */
.page-title {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7);
}

.page-subtitle {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  color: #ffffff;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 1.3rem auto;
  line-height: 1.5;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.sub-note {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.35rem;
  display: block;
}

/* Time Badges Container */
.time-badges-container {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  margin: 0.9rem 0;
  flex-wrap: wrap;
  max-width: 950px;
}

.countdown-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(26, 19, 48, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  padding: 0.65rem 1.8rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-width: 250px;
}

.countdown-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
}

.countdown-badge.badge-deadline {
  border-color: rgba(255, 140, 26, 0.4);
  background: rgba(38, 20, 32, 0.92);
}

.countdown-badge.badge-deadline:hover {
  border-color: rgba(255, 160, 60, 0.7);
}

.badge-header {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.countdown-badge.badge-deadline .badge-header {
  color: #ffb84d;
}

.badge-timer {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  margin: 0.6rem 0;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-action {
  font-size: 1.35rem;
  font-weight: 600;
  padding: 0.85rem 2.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

/* Featured Register Button (Prominent & Glowing) */
.btn-primary,
.btn-primary-featured {
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #ec4899 100%);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 0.95rem 3.4rem;
  font-size: 1.55rem;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.55), 0 6px 20px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover,
.btn-primary-featured:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #f43f5e 100%);
  border-color: #ffffff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.8), 0 8px 25px rgba(0, 0, 0, 0.5);
}

.btn-secondary {
  background: rgba(26, 18, 46, 0.88);
  color: #ede9fe;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  padding: 0.85rem 2.4rem;
  font-size: 1.35rem;
}

.btn-secondary:hover {
  background: rgba(45, 30, 80, 0.95);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.btn-submit {
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #ec4899 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 0.95rem 4rem;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 1.2rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #f43f5e 100%);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.75);
}

/* Mascot Chibi */
.mascot-container {
  margin-top: auto;
  padding-top: 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}

.home-mascot-wrap {
  margin-top: auto;
  padding-top: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  line-height: 0;
}

.home-mascot-wrap .mascot-img {
  max-width: 440px;
  width: 65vw;
  height: auto;
  max-height: 38vh;
  object-fit: contain;
  margin-bottom: -15px;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
  animation: floatMascot 4.5s ease-in-out infinite;
}

.mascot-img {
  max-width: 380px;
  width: 60%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
  animation: floatMascot 4.5s ease-in-out infinite;
}

/* ==========================================
   Full Center Modal Popups (SPA Popups)
========================================== */
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 4, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  box-sizing: border-box !important;
}

.app-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.app-modal-box {
  background: #19122f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  transform: scale(0.96);
  transition: transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  box-sizing: border-box !important;
}

.app-modal-backdrop.show .app-modal-box {
  transform: scale(1);
}

.form-modal-box {
  max-width: 720px;
  width: 95vw;
  padding: 2.6rem 2.4rem;
  box-sizing: border-box !important;
}

.quota-modal-box {
  max-width: 1180px;
  width: 94vw;
  padding: 2.2rem 2.4rem;
  box-sizing: border-box !important;
}

.modal-inner-content {
  width: 100%;
  box-sizing: border-box !important;
}

#popup-register-form {
  width: 100%;
  box-sizing: border-box !important;
}

.btn-close-modal {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

/* Registration Form */
.form-container {
  width: 100%;
  max-width: 600px;
  background: transparent;
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box !important;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  width: 100%;
  box-sizing: border-box !important;
}

.form-label {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.form-hint {
  font-size: 1.1rem;
  color: #b8b3cf;
  margin-bottom: 0.25rem;
}

.form-input,
.form-select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  background: #150f28;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  color: #ffffff;
  font-size: 1.3rem;
  transition: var(--transition-smooth);
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.form-input::placeholder {
  color: #7b719c;
}

.form-input:focus,
.form-select:focus {
  border-color: #a855f7;
  background: #1c1435;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.4);
}

.form-select option {
  background-color: #17102d;
  color: #ffffff;
  padding: 14px;
  font-size: 1.25rem;
}

/* ==========================================
   Interactive Zodiac Selector Cards (Single Select)
========================================== */
.zodiac-selector-wrap {
  width: 100%;
  margin-top: 0.3rem;
}

.zodiac-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
  max-height: 350px;
  overflow-y: auto;
  padding: 0.5rem 0.4rem 0.7rem 0.1rem;
  box-sizing: border-box !important;
}

/* Custom Scrollbar for selector */
.zodiac-selector-grid::-webkit-scrollbar {
  width: 7px;
}
.zodiac-selector-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.zodiac-selector-grid::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.5);
  border-radius: 4px;
}
.zodiac-selector-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.8);
}

@media (max-width: 640px) {
  .zodiac-selector-grid {
    grid-template-columns: 1fr;
    max-height: 300px;
    gap: 0.75rem;
  }
}

.zodiac-select-card {
  position: relative;
  background: #140d27;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-sizing: border-box !important;
  text-align: left;
}

.zodiac-select-card:hover {
  background: #261946;
  border-color: rgba(200, 140, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.zodiac-select-card.selected {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.32) 0%, rgba(59, 130, 246, 0.25) 100%), #231644;
  border-color: #c084fc;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.55), inset 0 0 10px rgba(168, 85, 247, 0.25);
  transform: translateY(-2px);
}

.zodiac-select-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 5px;
  transition: var(--transition-smooth);
}

.zodiac-select-card.selected .zodiac-select-icon {
  background: rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
}

.zodiac-select-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.zodiac-select-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.zodiac-select-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  word-break: break-word;
}

.zodiac-select-date {
  font-size: 1rem;
  color: #c4b5fd;
  line-height: 1.3;
  word-break: break-word;
}

.zodiac-select-card.selected .zodiac-select-date {
  color: #f3e8ff;
  font-weight: 600;
}

.zodiac-select-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.zodiac-select-card.selected .zodiac-select-check {
  background: #c084fc;
  border-color: #c084fc;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
}

.zodiac-select-check svg {
  display: none;
  width: 12px;
  height: 12px;
  stroke: #0c0817;
}

.zodiac-select-card.selected .zodiac-select-check svg {
  display: block;
}

/* Unknown Zodiac Card */
.zodiac-select-card.unknown-card {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.04);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
}

.zodiac-select-card.unknown-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.zodiac-select-card.unknown-card.selected {
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.2) 0%, rgba(249, 115, 22, 0.15) 100%), #1f143d;
  border-color: #fbbf24;
  border-style: solid;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
}

.zodiac-select-card.unknown-card.selected .zodiac-select-check {
  background: #fbbf24;
  border-color: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

/* Propose VTuber Button (Secondary warm amber glass style) */
.btn-propose {
  background: rgba(30, 20, 48, 0.85);
  color: #fde68a;
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-pill);
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.btn-propose:hover {
  background: rgba(48, 28, 75, 0.95);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.35);
}

/* Modal Inner Scroll Fix */
.form-modal-box {
  max-height: 90vh;
  overflow-y: auto;
}

.form-modal-box::-webkit-scrollbar {
  width: 6px;
}
.form-modal-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Checkbox Toggle Switch for Admin */
.admin-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

.admin-toggle-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  background: #2b1f48;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.admin-toggle-checkbox::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: var(--transition-smooth);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.admin-toggle-checkbox:checked {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.admin-toggle-checkbox:checked::before {
  transform: translateX(20px);
}

/* Badge for proposal status */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
}

.badge-status.approved {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-status.pending {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Zodiac Quota Grid (12 Zodiacs) */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin: 1.5rem 0 2rem 0;
  box-sizing: border-box !important;
}

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

@media (max-width: 768px) {
  .zodiac-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .zodiac-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.zodiac-card {
  background: #1c1530;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-sizing: border-box !important;
  min-width: 0;
}

.zodiac-card:hover {
  background: #2e224e;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.zodiac-card.unknown-quota-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(234, 88, 12, 0.12) 100%), #21162b;
  border: 1.5px dashed rgba(251, 191, 36, 0.45);
}

.zodiac-card.unknown-quota-card:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22) 0%, rgba(234, 88, 12, 0.22) 100%), #2d1d3b;
  border-color: #fbbf24;
  border-style: solid;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.zodiac-icon-box {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zodiac-icon-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.zodiac-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  text-align: left;
  overflow: hidden;
}

.zodiac-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zodiac-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zodiac-count {
  font-size: 0.95rem;
  color: #d8d2f5;
  font-weight: 600;
}

/* Individual Zodiac Page Banner */
.zodiac-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 2rem;
  gap: 1.2rem;
  flex-wrap: wrap;
  box-sizing: border-box !important;
}

.zodiac-title-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.zodiac-title-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

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

.zodiac-title-texts h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
}

.zodiac-title-texts p {
  color: var(--text-secondary);
  font-size: 1.15rem;
}

/* Participants Grid / Cards (Black Fade Overlay) */
.registrants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 2.5rem;
  box-sizing: border-box !important;
}

.participant-card {
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1.08;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box !important;
}

.participant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(168, 85, 247, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.participant-card-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.participant-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.participant-card:hover .participant-bg-img {
  transform: scale(1.04);
}

/* Smooth Black Fade Gradient */
.participant-fade-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.7) 70%,
    rgba(0, 0, 0, 0.95) 88%,
    #000000 100%
  );
  pointer-events: none;
}

/* Card Text Overlay */
.participant-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  z-index: 2;
  box-sizing: border-box !important;
}

.participant-name {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.2rem;
}

.participant-meta {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: #ffffff;
  opacity: 0.9;
  text-align: center;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 2rem;
  background: rgba(28, 20, 52, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  box-sizing: border-box !important;
}

.empty-state h3 {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 1.15rem;
}

/* Confirmation Modal Popup */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  box-sizing: border-box !important;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #1c1438;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.2rem;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.96);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  box-sizing: border-box !important;
}

.modal-backdrop.show .modal-box {
  transform: scale(1);
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-desc {
  font-size: 1.25rem;
  color: #e0dcf4;
  line-height: 1.6;
}

.modal-note {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3.5px solid #ff477e;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  color: #f7c0d4;
  line-height: 1.55;
  box-sizing: border-box !important;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.6rem;
}

.btn-modal-cancel {
  background: #271e44;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-pill);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-modal-cancel:hover {
  background: #372a60;
  color: #fff;
}

.btn-modal-confirm {
  background: #382960;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.75rem 2.2rem;
  border-radius: var(--radius-pill);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-modal-confirm:hover {
  background: #4d3884;
  border-color: #ffffff;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.toast {
  background: #221842;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 1rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-size: 1.15rem;
  animation: slideToast 0.3s ease forwards;
  box-sizing: border-box !important;
}

.toast.success {
  border-color: #10b981;
}

.toast.error {
  border-color: #ef4444;
}

/* Floating BGM Toggle Button (Sleek, Minimalist, No Emoji) */
.bgm-toggle-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 990;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(28, 21, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  outline: none;
  box-sizing: border-box !important;
}

.bgm-toggle-btn:hover {
  background: #392b5a;
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

.bgm-toggle-btn.muted {
  color: #8c83a8;
  opacity: 0.7;
}

/* Admin Dashboard */
.admin-card {
  width: 100%;
  max-width: 1140px;
  background: rgba(25, 18, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(16px);
  box-sizing: border-box !important;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-search-box {
  display: flex;
  gap: 0.8rem;
  flex: 1;
  max-width: 500px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th,
.admin-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box !important;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1.1rem;
}

.admin-table td {
  color: #eee9ff;
  font-size: 1.15rem;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.btn-delete {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.btn-delete:hover {
  background: #ef4444;
  color: #ffffff;
}

.stat-pills {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: #1c1438;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  box-sizing: border-box !important;
}

.stat-pill-label {
  font-size: 1rem;
  color: var(--text-muted);
}

.stat-pill-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
}