:root {
  --bg: #ffffff;
  --accent: #ea00ff;
  --accent-2: #00aeff;
  --text: #1b1b1f;
  --muted: #5c5f66;
  --card: #f7f7fb;
  --border: #ececf2;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.74);
  --surface-border: rgba(27, 27, 31, 0.10);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(closest-side at 18% 8%, rgba(234, 0, 255, 0.18), transparent 70%),
    radial-gradient(closest-side at 80% 18%, rgba(0, 174, 255, 0.16), transparent 72%),
    radial-gradient(closest-side at 40% 85%, rgba(234, 0, 255, 0.10), transparent 75%);
  background-repeat: no-repeat;
  background-size: 1200px 1200px, 1100px 1100px, 1300px 1300px;
  background-position: -240px -260px, calc(100% + 220px) -260px, 20% calc(100% + 260px);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background:
    linear-gradient(180deg, rgba(234, 0, 255, 0.10), transparent 55%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.user-menu {
  position: relative;
}

.user-menu summary {
  list-style: none;
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-summary {
  user-select: none;
}

.user-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background:
    linear-gradient(180deg, rgba(0, 174, 255, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.86);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
}

.user-dropdown a:hover {
  background: rgba(0, 174, 255, 0.10);
}

.user-menu:not([open]) .user-dropdown {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 500;
  color: var(--muted);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.hero {
  padding: 80px 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 42px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 0, 255, 0.08);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.10);
  border-color: rgba(234, 0, 255, 0.20);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.progress-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.progress-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.progress-value {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(27, 27, 31, 0.08);
  border: 1px solid rgba(27, 27, 31, 0.10);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px rgba(234, 0, 255, 0.18);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.section {
  padding: 50px 0;
}

.section h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 12px;
}

.section p.lead {
  color: var(--muted);
  max-width: 720px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 174, 255, 0.15);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.8rem;
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed var(--border);
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--surface-border);
  background:
    linear-gradient(0deg, rgba(0, 174, 255, 0.08), transparent 45%),
    linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.52));
  backdrop-filter: blur(12px);
  color: var(--muted);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 26px;
  align-items: start;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1rem;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-home {
  font-weight: 700;
  color: var(--text);
}

.footer-muted {
  margin: 0;
}

.footer-links,
.footer-socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social-link {
  --social-color: var(--muted);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  transition: 0.2s ease;
}

.footer-social-link:hover {
  color: var(--social-color);
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.08);
}

.footer-social-link[data-social="twitch"] { --social-color: #9146ff; }
.footer-social-link[data-social="youtube"] { --social-color: #ff0000; }
.footer-social-link[data-social="discord"] { --social-color: #5865f2; }
.footer-social-link[data-social="twitter"] { --social-color: #1da1f2; }
.footer-social-link[data-social="bluesky"] { --social-color: #1185fe; }

.footer-social-icon i {
  font-size: 22px;
  line-height: 1;
}

.social-icon i {
  font-size: 18px;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.social-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .social-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.planning-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.planning-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 16px;
  min-width: 980px;
}

.planning-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 120px auto;
}

.planning-thumb {
  background: linear-gradient(135deg, rgba(234, 0, 255, 0.22), rgba(0, 174, 255, 0.22));
  background-size: cover;
  background-position: center;
}

.planning-body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 8px;
}

.planning-day {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 174, 255, 0.12);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.78rem;
}

.planning-game {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

.planning-card.is-empty .planning-game {
  color: var(--muted);
  font-weight: 600;
}

.footer-links a {
  color: var(--muted);
  transition: 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  transition: 0.2s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(234, 0, 255, 0.35);
  color: var(--text);
}

.social-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(234, 0, 255, 0.12), rgba(0, 174, 255, 0.12));
  color: var(--accent);
  flex: 0 0 auto;
}

.social-name {
  font-weight: 600;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

.badge {
  background: rgba(234, 0, 255, 0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.form {
  display: grid;
  gap: 16px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
}

.form select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  background: #fff;
}

.modal {
  border: none;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 180ms var(--ease-out);
}

.modal[open]::backdrop {
  opacity: 1;
}

.modal-card {
  width: min(520px, 92vw);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
  transform: translateY(6px) scale(0.99);
  opacity: 0;
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}

.modal[open] .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.modal-card--xl {
  width: min(1100px, 96vw);
  max-height: 85vh;
  overflow: auto;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  background: #fff;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  color: var(--text);
}

.admin-edit {
  display: inline-block;
}

.admin-edit summary {
  list-style: none;
}

.admin-edit summary::-webkit-details-marker {
  display: none;
}

.admin-edit-form {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(0, 174, 255, 0.06);
}

.admin-edit-form input,
.admin-edit-form textarea,
.admin-edit-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  background: #fff;
}

.form button {
  justify-self: start;
}

.hero-card {
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(135deg, rgba(234, 0, 255, 0.08), rgba(0, 174, 255, 0.1));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.notice {
  background: rgba(0, 174, 255, 0.12);
  border-left: 4px solid var(--accent-2);
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--muted);
}

.category-list {
  display: grid;
  gap: 32px;
  margin-top: 20px;
}

.category-card {
  display: grid;
  gap: 16px;
}

.commission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.commission-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.commission-media {
  height: 150px;
  background: linear-gradient(135deg, rgba(234, 0, 255, 0.35), rgba(0, 174, 255, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.commission-body {
  padding: 20px;
  display: grid;
  grid-template-rows: auto auto minmax(140px, 1fr) auto;
  gap: 10px;
}

.commission-desc {
  height: 160px;
  overflow: auto;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  width: fit-content;
}

.options-toggle {
  margin-top: 12px;
}

.options-toggle summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.options-toggle summary::-webkit-details-marker {
  display: none;
}

.option-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.options-toggle:not([open]) .option-list {
  display: none;
}

.option-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.option-price {
  color: var(--accent);
  font-weight: 600;
}

.option-muted {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 700px) {
  .nav-links {
    justify-content: center;
  }

  .navbar {
    flex-direction: column;
  }
}
