:root {
  --bg: #fff2d9;
  --text: #1b0f12;
  --accent: #d81f2a;
  --accent-2: #f7c500;
  --danger: #b3121a;
  --card: #fffaf2;
  --shadow: rgba(0, 0, 0, 0.18);
  --shadow-soft: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #fff9ee 0%, #ffe6c7 55%, #ffd6bf 100%);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

body::before {
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, var(--accent-2), rgba(255, 255, 255, 0));
  animation: float 12s ease-in-out infinite;
}

body::after {
  bottom: -180px;
  right: -120px;
  background: radial-gradient(circle, var(--accent), rgba(255, 255, 255, 0));
  animation: float 14s ease-in-out infinite reverse;
}

.app {
  min-height: 100vh;
  padding: 28px;
  position: relative;
  z-index: 1;
}

h1, h2 {
  margin: 0 0 12px;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn {
  background: linear-gradient(135deg, var(--accent), #f04832);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 10px 20px rgba(216, 31, 42, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--danger {
  background: var(--danger);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(216, 31, 42, 0.32);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.upload {
  max-width: 980px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 440px);
  gap: 28px;
  align-items: center;
}

.upload__hero {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(255, 238, 213, 0.85));
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 30px var(--shadow-soft);
  position: relative;
  overflow: hidden;
  animation: rise 0.6s ease-out;
}

.upload__hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(247, 197, 0, 0.5), rgba(255, 255, 255, 0));
  border-radius: 50%;
}

.upload__badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-2);
  color: #1a0f12;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.upload__event {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.upload__hint {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

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

.upload__steps li {
  position: relative;
  padding-left: 26px;
  font-weight: 600;
}

.upload__steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(216, 31, 42, 0.18);
}

.upload__card {
  background: var(--card);
  padding: 26px;
  border-radius: 24px;
  box-shadow: 0 16px 32px var(--shadow);
  border: 2px solid rgba(247, 197, 0, 0.3);
  animation: rise 0.7s ease-out;
}

.upload__form label {
  display: block;
  margin: 14px 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.upload__form input[type="text"],
.upload__form input[type="password"],
.upload__form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(27, 15, 18, 0.2);
  margin-top: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.upload__form input[type="file"] {
  margin-top: 8px;
}

.upload__form input:focus,
.upload__form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 31, 42, 0.15);
}

.preview {
  margin: 14px 0 6px;
  text-align: center;
}

.preview img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 20px var(--shadow);
}

.captcha {
  margin: 12px 0 4px;
}

.progress {
  margin-top: 14px;
  background: rgba(216, 31, 42, 0.08);
  border-radius: 999px;
  padding: 6px 8px;
}

.progress__bar {
  height: 8px;
  background: linear-gradient(90deg, var(--accent), #ff6b3d);
  width: 0;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.progress__label {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.status {
  margin-top: 12px;
  font-weight: 600;
}

.status--error {
  color: var(--danger);
}

.upload__footer {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(27, 15, 18, 0.7);
}

.admin {
  max-width: 960px;
  margin: 0 auto;
}

.admin__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin__filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

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

.photo-card {
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 20px var(--shadow);
}

.photo-card img {
  width: 100%;
  border-radius: 10px;
}

.photo-card__actions form {
  margin-top: 8px;
}

.screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  min-height: 90vh;
  align-items: stretch;
}

.screen__stage {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: radial-gradient(circle at top, #1e1b22 0%, #0f0a0c 70%);
  border: 4px solid rgba(247, 197, 0, 0.5);
  box-shadow: 0 24px 50px rgba(10, 8, 10, 0.45);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slide.active {
  opacity: 1;
}

.empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  gap: 12px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(15, 10, 12, 0.75), rgba(15, 10, 12, 0.9));
}

.empty__badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-2);
  color: #1a0f12;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
}

.screen__info {
  background: linear-gradient(160deg, #fffaf2 0%, #ffe5c4 100%);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 30px var(--shadow);
  border: 2px solid rgba(216, 31, 42, 0.2);
  display: grid;
  gap: 18px;
  animation: rise 0.6s ease-out;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, 18px);
  }
  100% {
    transform: translate(0, 0);
  }
}

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

.screen__brand h2 {
  margin-bottom: 6px;
}

.screen__badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.screen__cta {
  font-weight: 700;
  margin: 8px 0 0;
}

.tag {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(216, 31, 42, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.screen__qr-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 12px 20px var(--shadow-soft);
}

.screen__qr {
  width: 100%;
  margin: 6px 0 8px;
  border-radius: 12px;
  border: 2px solid rgba(27, 15, 18, 0.1);
}

.screen__footer {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(27, 15, 18, 0.75);
}

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

  .upload__hero,
  .upload__card {
    padding: 22px;
  }

  .screen {
    grid-template-columns: 1fr;
    height: auto;
  }

  .screen__info {
    order: 2;
  }
}
