* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #05070f;
  --red: #ff5a5f;
  --red-dark: #ff3d5c;
  --red-light: #ff7a7f;
  --gray: rgba(255, 255, 255, 0.05);
  --gray-light: rgba(255, 255, 255, 0.12);
  --white: #f9fafb;
  --white-dim: #c7cbe8;
  --gold: #facc15;
  --purple: #7c3aed;
  --blue: #38bdf8;
}

body {
  font-family: 'Inter', 'Orbitron', sans-serif;
  background: radial-gradient(circle at top, rgba(124, 58, 237, 0.25), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.2), transparent 45%),
    linear-gradient(135deg, #060814, #070910 55%, #05070f);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
}

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

.page-wrapper {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 90, 95, 0.15), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.12), transparent 60%);
  filter: blur(60px);
  opacity: 0.8;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.container {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.5rem, 2vw, 3rem);
  z-index: 1;
}

.header {
  padding: 1.5rem 0 2.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  backdrop-filter: blur(18px);
  background: rgba(10, 12, 22, 0.7);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  color: var(--red);
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 3px;
}

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

.tagline {
  font-size: 0.85rem;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  color: var(--white-dim);
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 16, 33, 0.65);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, border 0.2s ease, color 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}

.header-link:hover {
  color: var(--white);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.header-link:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.6);
  outline-offset: 2px;
}

.main-content {
  padding-bottom: 5rem;
}

.hero-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: rgba(13, 16, 33, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 90, 95, 0.08), transparent 45%),
    linear-gradient(320deg, rgba(56, 189, 248, 0.08), transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  align-self: flex-start;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 90, 95, 0.12);
  color: var(--red-light);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  color: var(--white-dim);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.highlight {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.highlight-value {
  font-weight: 700;
  font-size: 1rem;
}

.highlight-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.cta-caption {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.hero-orb {
  position: absolute;
  width: clamp(220px, 40vw, 320px);
  height: clamp(220px, 40vw, 320px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 127, 0.35), rgba(124, 58, 237, 0.12));
  filter: blur(0px);
  animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

.hero-ticket-preview {
  position: relative;
  background: linear-gradient(145deg, rgba(9, 12, 25, 0.95), rgba(34, 38, 66, 0.9));
  border-radius: 24px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 40px rgba(10, 12, 24, 0.45);
  width: clamp(240px, 40vw, 300px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: rotate3d(1, 1, 0, 12deg);
  animation: ticketFloat 6s ease-in-out infinite;
}

@keyframes ticketFloat {
  0%, 100% { transform: rotate3d(1, 1, 0, 12deg) translateY(0); }
  50% { transform: rotate3d(1, 1, 0, 6deg) translateY(-12px); }
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.25);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-code {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.4em;
  margin: 0 auto;
  overflow-wrap: break-word;
  word-break: break-all;
  white-space: normal;
}

@media (max-width: 480px) {
  .preview-code {
    font-size: 1.2rem;
    width: 100%;
    min-height: 1.8em;
    padding: 0.1em 0;
  }
}

.preview-footer {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 1.6rem;
  opacity: 0.75;
}

.hero-particles span:nth-child(1) { animation: particleDrift 7s linear infinite; }
.hero-particles span:nth-child(2) { animation: particleDrift 6s linear infinite reverse; }
.hero-particles span:nth-child(3) { animation: particleDrift 5.5s linear infinite; }

@keyframes particleDrift {
  0% { transform: translate(-10px, 0) rotate(0deg); opacity: 0; }
  10%, 80% { opacity: 1; }
  100% { transform: translate(10px, -20px) rotate(12deg); opacity: 0; }
}

.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.info-card {
  display: flex;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 16, 33, 0.6);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border 0.3s ease;
}

.info-card:hover { transform: translateY(-6px); border-color: rgba(255, 90, 95, 0.35); }

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 90, 95, 0.18);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.info-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.top-prizes-section {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(2.8rem, 5vw, 4.5rem);
  margin-bottom: clamp(3rem, 6vw, 4.8rem);
  display: grid;
  gap: clamp(1.4rem, 2vw, 1.8rem);
}

.top-prizes-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.top-prizes-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top-prizes-caption {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.top-prizes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
}

.top-prize-card {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 15, 30, 0.85);
  padding: clamp(1.3rem, 2.8vw, 1.9rem);
  display: grid;
  gap: 0.9rem;
  min-height: 200px;
  transform-style: preserve-3d;
  perspective: 1200px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
  box-shadow: 0 28px 44px rgba(8, 11, 24, 0.38);
  overflow: hidden;
}

.top-prize-card::before {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.35;
  pointer-events: none;
  transform: translateZ(-1px);
}

.top-prize-card::after {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 95, 0.25), transparent 65%);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.top-prize-card:hover {
  transform: rotateX(6deg) rotateY(-8deg);
  border-color: rgba(255, 90, 95, 0.5);
  box-shadow: 0 35px 55px rgba(255, 90, 95, 0.28);
}

.top-prize-card:hover::after {
  opacity: 1;
}

.top-prize-icon {
  font-size: clamp(2.6rem, 4.6vw, 3.2rem);
  text-align: center;
}

.top-prize-name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.top-prize-weight {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  padding: 0.95rem 2.8rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--red), #ff7a7f);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 15px 35px rgba(255, 90, 95, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 15, 30, 0.55);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--white);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-outline-icon {
  font-size: 1.05rem;
}

.btn-outline-text {
  white-space: nowrap;
}

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

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(255, 90, 95, 0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20%, rgba(255, 255, 255, 0.45), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: btnShimmer 2.6s ease-in-out infinite;
}

@keyframes btnShimmer {
  0%, 100% { opacity: 0; transform: translateX(-80%); }
  45% { opacity: 0.5; }
  50% { opacity: 0.8; transform: translateX(80%); }
  55% { opacity: 0.5; }
}

.btn-text { position: relative; z-index: 1; }

.limits-info {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  background: rgba(15, 18, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.ticket-section {
  display: grid;
  gap: 1.8rem;
  animation: fadeIn 0.5s ease;
}

.ticket-card {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(12, 15, 30, 0.84);
  backdrop-filter: blur(18px);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.ticket-header {
  text-align: center;
}

.ticket-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.ticket-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin: 0;
}

.ticket-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.qr-code {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.qr-code canvas {
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.ticket-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.ticket-code-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.ticket-code-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.ticket-code {
  font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
}

.btn-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn-copy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.copy-icon {
  font-size: 1rem;
}

.ticket-expiry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.expiry-label {
  font-weight: 600;
}

.expiry-date {
  color: var(--white);
  font-weight: 500;
}

.ticket-actions {
  display: flex;
  justify-content: center;
}

.ticket-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ticket-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-status {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-weight: 600;
  text-transform: uppercase;
}

.ticket-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.ticket-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
}

.qr-placeholder canvas {
  border-radius: 16px;
  box-shadow: 0 20px 35px rgba(15, 18, 36, 0.4);
}

.ticket-details {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.token-wrapper {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.ticket-token {
  position: relative;
  width: clamp(180px, 35vw, 240px);
  height: clamp(180px, 35vw, 240px);
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: tokenSpin 12s linear infinite;
  box-shadow: 0 25px 40px rgba(18, 24, 45, 0.55);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  outline: none;
}

.ticket-token::after {
  content: '';
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.55;
  filter: blur(20px);
}

.ticket-token:focus-visible,
.ticket-token:hover {
  animation: tokenSpin 5s linear infinite;
  box-shadow: 0 35px 50px rgba(56, 189, 248, 0.35);
}

.token-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  backface-visibility: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(255, 90, 95, 0.3), rgba(15, 20, 40, 0.9));
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  z-index: 1;
}

.token-front {
  background: radial-gradient(circle at 70% 30%, rgba(56, 189, 248, 0.45), transparent 65%),
    radial-gradient(circle at 30% 75%, rgba(124, 58, 237, 0.3), rgba(12, 16, 33, 0.95));
}

.token-back {
  transform: rotateY(180deg);
  background: radial-gradient(circle at 20% 25%, rgba(255, 90, 95, 0.25), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(250, 204, 21, 0.25), rgba(10, 13, 26, 0.95));
}

.token-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

.token-code {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: 0.22em;
}

.token-icon {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.token-text {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.8rem;
}

.token-copy {
  align-self: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(56, 189, 248, 0.18);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.token-copy:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.token-copy:active {
  transform: translateY(0);
}

.token-copy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}

.ticket-infos {
  display: grid;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  text-align: center;
}

.ticket-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem;
  border-radius: 22px;
  background: rgba(255, 90, 95, 0.12);
  border: 1px solid rgba(255, 90, 95, 0.18);
}

.ticket-box { text-align: left; }

.ticket-box-icon { font-size: 1.8rem; }
.ticket-box-title { font-weight: 600; margin-bottom: 0.2rem; }
.ticket-box-caption { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }

@keyframes tokenSpin {
  0% {
    transform: rotateY(0deg) rotateX(8deg);
  }
  50% {
    transform: rotateY(180deg) rotateX(-8deg);
  }
  100% {
    transform: rotateY(360deg) rotateX(8deg);
  }
}

.share-section {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 16, 33, 0.75);
  padding: clamp(1.75rem, 3vw, 2.4rem);
  display: grid;
  gap: 1.2rem;
}

.share-caption { color: rgba(255, 255, 255, 0.72); }

.share-link-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.share-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-width: 220px;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 15, 30, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.share-input-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
}

.share-input {
  flex: 1;
  padding: 0.35rem 0;
  border: none;
  background: transparent;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.share-input:focus {
  outline: none;
}

.btn-secondary {
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  border: none;
  background: rgba(255, 90, 95, 0.18);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-secondary:hover { background: rgba(255, 90, 95, 0.3); transform: translateY(-1px); }

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.btn-share {
  padding: 1.05rem 1.8rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(56, 189, 248, 0.25));
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(14, 20, 40, 0.35);
  border-color: rgba(56, 189, 248, 0.45);
}

.btn-share:active {
  transform: translateY(0);
}

.btn-share-icon {
  font-size: 1.3rem;
}

.btn-share-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.btn-share-title {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-share-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

@keyframes sharePulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5); }
  100% { box-shadow: 0 0 0 14px rgba(56, 189, 248, 0); }
}

.share-input--flash {
  animation: sharePulse 1.3s ease-out;
  border-radius: 18px;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5);
}

.btn-share.share-disabled,
.btn-outline.share-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.share-progress {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--red));
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}


.history-section {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: 1.4rem;
}

.history-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.history-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.history-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.history-list {
  display: grid;
  gap: 1rem;
}

.history-item {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 16, 33, 0.8);
  backdrop-filter: blur(16px);
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  display: grid;
  gap: 0.9rem;
  box-shadow: 0 18px 36px rgba(8, 11, 24, 0.4);
}

.history-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.history-code {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.history-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-status--unused {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

.history-status--won_unclaimed {
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: rgba(255, 255, 255, 0.85);
}

.history-status--redeemed {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.history-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.history-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(56, 189, 248, 0.18);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.history-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.history-empty {
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(12, 15, 30, 0.6);
}


.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(12, 15, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 35px rgba(10, 12, 25, 0.35);
  z-index: 1600;
}

.footer {
  margin-top: 4rem;
  padding: 2rem 0 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.6);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
    gap: 1rem;
  }

  .header-right {
    align-items: center;
  }

  .header-actions {
    justify-content: center;
  }

  .hero-title { text-align: left; }
  .hero-content { gap: 1.25rem; }
  .hero-visual { order: -1; }
  .hero-orb { transform: scale(0.85); }
  .hero-ticket-preview { transform: none; }

  .staff-card {
    padding: 1.6rem;
  }

  .stats-grid {
    gap: 1rem;
  }

  .chart-container {
    padding: 1.5rem;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .hero-cta {
    width: 100%;
    align-items: stretch;
  }

  .hero-cta > button {
    width: 100%;
  }
}

.staff-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.staff-section {
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 3vw, 2.8rem);
}

.staff-card {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 16, 33, 0.82);
  backdrop-filter: blur(18px);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 25px 45px rgba(8, 11, 24, 0.45);
}

.staff-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.3rem, 2.1vw, 1.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
}

.staff-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.6;
  max-width: 32rem;
  margin: 0 auto;
}

.staff-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 420px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.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;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 15, 30, 0.8);
  color: var(--white);
  font-family: 'Inter', 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
  background: rgba(15, 20, 36, 0.95);
}

.result-section {
  animation: fadeIn 0.5s ease;
}


.result-card {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 15, 30, 0.84);
  backdrop-filter: blur(16px);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  box-shadow: 0 28px 48px rgba(10, 12, 25, 0.45);
}

.result-header {
  text-align: center;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.result-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 800px;
  min-height: 2.4em;
  margin: 0 auto;
  overflow-wrap: break-word;
  word-break: break-all;
  white-space: normal;
}

.prize-reveal {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  padding: 2.2rem 1.4rem;
  border-radius: 24px;
  background: radial-gradient(circle at 45% 20%, rgba(255, 90, 95, 0.25), transparent 70%),
    rgba(15, 19, 36, 0.9);
  border: 1px solid rgba(255, 90, 95, 0.35);
  box-shadow: 0 20px 40px rgba(255, 90, 95, 0.18);
  transform-style: preserve-3d;
  perspective: 1200px;
}

.prize-reveal-3d {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: clamp(1.4rem, 3vw, 1.8rem);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 90, 95, 0.3), rgba(255, 122, 127, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  transform: rotateX(18deg) rotateY(-12deg);
  animation: revealCardFloat 6s ease-in-out infinite;
  box-shadow: 0 25px 45px rgba(8, 11, 24, 0.55);
}

.prize-reveal-3d::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.55;
}

.prize-reveal-emoji {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  justify-self: center;
}

.prize-reveal-name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.slot-animation-overlay--done .slot-animation-content {
  animation: revealOverlayFade 0.7s ease forwards;
}

@keyframes revealCardFloat {
  0%, 100% {
    transform: rotateX(18deg) rotateY(-12deg) translateY(0);
    box-shadow: 0 25px 45px rgba(8, 11, 24, 0.55);
  }
  50% {
    transform: rotateX(13deg) rotateY(-4deg) translateY(-12px);
    box-shadow: 0 30px 50px rgba(8, 11, 24, 0.6);
  }
}

@keyframes revealOverlayFade {
  0% { opacity: 1; }
  100% { opacity: 0.95; }
}

@keyframes revealFlip {
  0% { transform: rotateY(-150deg) rotateX(22deg) scale(0.92); }
  25% { transform: rotateY(210deg) rotateX(22deg) scale(0.92); }
  50% { transform: rotateY(570deg) rotateX(22deg) scale(0.92); }
  75% { transform: rotateY(930deg) rotateX(22deg) scale(0.92); }
  100% { transform: rotateY(-20deg) rotateX(8deg) scale(1); }
}

.reveal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.3), transparent 65%),
    rgba(5, 7, 15, 0.9);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1200;
}

.reveal-overlay.is-active {
  opacity: 1;
}

.reveal-overlay.is-ending {
  opacity: 0;
}

.reveal-overlay-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.reveal-token {
  position: relative;
  width: clamp(220px, 40vw, 300px);
  height: clamp(220px, 40vw, 300px);
  border-radius: 36px;
  transform-style: preserve-3d;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.35), rgba(124, 58, 237, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 35px 55px rgba(8, 11, 24, 0.5);
  transform: rotateY(-150deg) rotateX(22deg) scale(0.92);
  transition: transform 4.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.golden-ticket {
  background: repeating-linear-gradient(135deg, #ffd700 0px, #ffe066 12px, #ffd700 24px),
    linear-gradient(120deg, #fffbe6 0%, #ffd700 40%, #ffb300 100%);
  border: 4px double #bfa700;
  box-shadow:
    0 0 0 6px rgba(255, 215, 0, 0.18),
    0 0 40px 8px rgba(255, 215, 0, 0.22),
    0 35px 55px rgba(255, 215, 0, 0.18),
    0 0 80px 0px #fffbe6 inset;
  position: relative;
  overflow: visible;
}

.golden-ticket::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 48px;
  background: linear-gradient(90deg, rgba(255,255,255,0.18) 0%, rgba(255,215,0,0.18) 50%, rgba(255,255,255,0.18) 100%);
  pointer-events: none;
  z-index: 2;
}

.golden-ticket::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 10%;
  width: 60%;
  height: 18px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255,255,255,0.7) 0%, rgba(255,215,0,0.0) 100%);
  border-radius: 12px;
  filter: blur(4px);
  opacity: 0.7;
  z-index: 3;
  animation: goldenShine 2.8s linear infinite;
}

@keyframes goldenShine {
  0% { opacity: 0.2; left: 10%; }
  50% { opacity: 0.8; left: 70%; }
  100% { opacity: 0.2; left: 10%; }
}

.golden-ticket .reveal-face {
  background: linear-gradient(120deg, #fffbe6 0%, #ffd700 40%, #ffb300 100%);
  border: 2px solid #bfa700;
  color: #7a5c00;
  text-shadow: 0 1px 0 #fffbe6, 0 2px 4px #bfa700;
}

.golden-ticket .reveal-title {
  font-family: 'Orbitron', 'Georgia', serif;
  font-size: 1.1rem;
  color: #bfa700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #fffbe6, 0 2px 4px #bfa700;
}

.golden-ticket .reveal-prize {
  font-family: 'Orbitron', 'Georgia', serif;
  font-size: 1.5rem;
  color: #7a5c00;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 0 #fffbe6, 0 2px 4px #bfa700;
}

.golden-ticket .reveal-emoji {
  font-size: 3.2rem;
  filter: drop-shadow(0 0 8px #ffd700) drop-shadow(0 0 2px #fffbe6);
}
}

.golden-ticket::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 46px;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  animation: goldenShine 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes goldenShine {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}

.reveal-overlay.is-active .reveal-token {
  transform: rotateY(-20deg) rotateX(8deg) scale(1);
  animation: revealFlip 1.8s ease-out;
}

.reveal-overlay.is-revealed .reveal-token {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.reveal-overlay.is-ending .reveal-token {
  transform: rotateY(12deg) rotateX(-6deg) scale(0.9);
}

.reveal-face {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  backface-visibility: hidden;
  padding: 1.6rem;
  color: var(--white);
}

.reveal-front {
  background: radial-gradient(circle at 65% 20%, rgba(255, 122, 127, 0.32), transparent 70%),
    rgba(12, 16, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.reveal-back {
  transform: rotateY(180deg);
  background: radial-gradient(circle at 35% 80%, rgba(255, 90, 95, 0.28), transparent 70%),
    rgba(13, 18, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.reveal-emoji {
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
}

.reveal-title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.reveal-prize {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.7rem);
  letter-spacing: 0.14em;
  text-align: center;
}

.reveal-back-text {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.reveal-glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 95, 0.35), transparent 65%);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.reveal-overlay.is-revealed .reveal-glow {
  opacity: 1;
}

.ticket-info-staff {
  display: grid;
  gap: 0.45rem;
  padding: 1.4rem 1.6rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 13, 26, 0.72);
}

.ticket-info-staff p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.ticket-info-staff strong {
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.btn-validate {
  padding: 0.95rem 1.5rem;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 18px 35px rgba(99, 102, 241, 0.32);
}

.btn-validate:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(99, 102, 241, 0.4);
}

.btn-validate:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.staff-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.prize-list {
  list-style: none;
  padding: 0;
}

.prize-item {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--gray-light);
  color: var(--white-dim);
}

.prize-item:last-child {
  border-bottom: none;
}

.prize-weight {
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 55px;
  text-align: center;
}

.prize-weight.common {
  background: #4a4a4a;
  color: var(--white);
}

.prize-weight.rare {
  background: #3498db;
  color: var(--white);
}

.prize-weight.epic {
  background: #9b59b6;
  color: var(--white);
}

.instructions-list {
  padding-left: 25px;
  color: var(--white-dim);
  line-height: 1.8;
}

.instructions-list li {
  margin: 10px 0;
}

.ticket-forge-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.35), transparent 55%),
    radial-gradient(circle at 80% 15%, rgba(56, 189, 248, 0.3), transparent 65%),
    rgba(5, 7, 15, 0.92);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.forge-wrapper {
  width: min(520px, 92vw);
  position: relative;
}

.forge-card {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 12, 24, 0.85);
  /* overflow: hidden; */
  padding: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  box-shadow: 0 30px 60px rgba(7, 10, 20, 0.65);
}

.forge-card::after {
  content: '';
  position: absolute;
  inset: -40% -30%;
  background: radial-gradient(circle, rgba(255, 90, 95, 0.25), transparent 65%);
  opacity: 0.6;
  animation: forgeGlow 6s ease-in-out infinite;
}

@keyframes forgeGlow {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.5; }
  50% { transform: rotate(6deg) scale(1.05); opacity: 0.8; }
}

.forge-header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  text-align: center;
}

.forge-pill {
  justify-self: center;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.forge-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  display: block;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 480px) {
  .forge-header h3 {
    font-size: 1.2rem;
  }
}

.forge-ticket-shell {
  position: relative;
  padding: 2.4rem 1.6rem;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
    rgba(10, 13, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.forge-ticket {
  position: relative;
  width: 240px;
  border-radius: 20px;
  padding: 1.4rem 1.2rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(56, 189, 248, 0.85));
  color: #0b1020;
  display: grid;
  gap: 0.6rem;
  text-align: center;
  box-shadow: 0 18px 35px rgba(38, 92, 255, 0.25);
  transform: rotate3d(1, 1, 0, 14deg);
  animation: forgePulse 2.8s ease-in-out infinite;
}

.forge-ticket::after {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 16px;
  border: 1px dashed rgba(10, 16, 32, 0.25);
  opacity: 0.7;
}

@keyframes forgePulse {
  0%, 100% { transform: rotate3d(1, 1, 0, 14deg) translateY(0); }
  50% { transform: rotate3d(1, -0.5, 0, 10deg) translateY(-10px); }
}

.forge-ticket-title {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
}

.forge-ticket-code {
  font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 1.6rem;
  letter-spacing: 0.25em;
  text-align: center;
  display: block;
  width: 100%;
}

.forge-ticket-sub {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.forge-torus {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.25);
  inset: 15%;
  animation: torusSpin 6s linear infinite;
}

.forge-torus--one {
  animation-duration: 6.5s;
}

.forge-torus--two {
  inset: 5%;
  border-color: rgba(255, 90, 95, 0.25);
  animation-duration: 8s;
}

@keyframes torusSpin {
  0% { transform: rotate(0deg) scale(0.95); opacity: 0.5; }
  50% { transform: rotate(180deg) scale(1.05); opacity: 0.8; }
  100% { transform: rotate(360deg) scale(0.95); opacity: 0.5; }
}

.forge-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: forgeScan 2.6s ease-in-out infinite;
}

@keyframes forgeScan {
  0% { transform: translateY(-120%); }
  50% { transform: translateY(0%); }
  100% { transform: translateY(120%); }
}

.forge-progress {
  display: grid;
  gap: 0.8rem;
}

.forge-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.forge-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.85), rgba(255, 90, 95, 0.95));
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.45);
}

.forge-progress-text {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.ticket-forge-overlay.forge-done .forge-progress-text {
  color: #38f2a1;
}

.forge-actions {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  margin-top: 1.2rem;
}

.forge-continue {
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(56, 189, 248, 0.18);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
  pointer-events: auto;
}

.forge-continue:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.35);
}

.forge-continue:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.65);
  outline-offset: 3px;
}

.forge-hint {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1300;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 12px;
  height: 12px;
  top: -20px;
  border-radius: 4px;
  pointer-events: none;
  animation: confettiFall 3.2s linear forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(100vh) rotate(540deg);
    opacity: 0;
  }
}


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

.config-form {
  max-width: none;
}

.prizes-admin-list {
  margin-bottom: 20px;
}

.prize-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 15, 30, 0.82);
  backdrop-filter: blur(16px);
  padding: clamp(1.3rem, 2.6vw, 1.8rem);
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, border 0.25s ease;
}

.prize-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
}

.prize-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.prize-icon-input,
.prize-name-input,
.prize-weight-input {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 16, 33, 0.78);
  color: var(--white);
  font-family: 'Inter', 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.prize-icon-input {
  width: 70px;
  text-align: center;
  font-size: 1.4rem;
}

.prize-name-input {
  flex: 1;
}

.prize-name-input:focus,
.prize-icon-input:focus,
.prize-weight-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
  background: rgba(15, 20, 36, 0.9);
}

.prize-active-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.prize-active-toggle input[type=\"checkbox\"] {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
}

.prize-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.prize-card-body label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prize-weight-input {
  width: 140px;
}

.btn-delete {
  padding: 0.65rem 1.2rem;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-delete:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.25);
}

.full-width {
  width: 100%;
}

.weight-warning {
  color: #facc15;
  font-weight: 600;
  margin-top: 0.5rem;
}

.slot-animation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b0b0d 0%, #1a1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.slot-animation-content {
  text-align: center;
  padding: 40px;
  position: relative;
}

.slot-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red-light);
  margin-bottom: 40px;
  letter-spacing: 4px;
  animation: pulse 1s ease-in-out infinite;
}

.slot-machine-staff {
  background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
  padding: 40px;
  border-radius: 30px;
  box-shadow:
    0 0 50px rgba(229, 9, 20, 0.4),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
  border: 4px solid var(--red);
  position: relative;
  margin: 0 auto 30px;
  max-width: 500px;
}

.slot-window {
  display: flex;
  gap: 20px;
  justify-content: center;
  background: var(--black);
  padding: 30px 20px;
  border-radius: 20px;
  border: 3px solid var(--red-dark);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  height: 120px;
}

.slot-reel-staff {
  width: 100px;
  height: 120px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.slot-item {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  flex-shrink: 0;
}

@keyframes slotSpin {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-720px);
  }
}

.slot-light {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--red-light);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--red);
  top: 20px;
}

.slot-light.left {
  left: 20px;
}

.slot-light.right {
  right: 20px;
}

@keyframes lightBlink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 20px var(--red);
  }
  50% {
    opacity: 0.3;
    box-shadow: 0 0 5px var(--red);
  }
}

.slot-status {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 30px;
  letter-spacing: 2px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prize-reveal {
  animation: prizeReveal 0.5s ease-out;
  font-size: 5rem;
  line-height: 1.2;
}

.prize-reveal-text {
  font-size: 1.5rem;
  color: var(--red-light);
  font-weight: 900;
  display: block;
  margin-top: 10px;
}

@keyframes prizeReveal {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.slot-lever {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 200px;
}

.lever-handle {
  width: 30px;
  height: 80px;
  background: linear-gradient(90deg, #ff0000, #cc0000);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  position: relative;
}

.lever-handle::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--red-light);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--red);
}

@keyframes leverPull {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(60px);
  }
  100% {
    transform: translateY(0);
  }
}

.stats-dashboard {
  margin-top: 40px;
}

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


.stat-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 15, 30, 0.82);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  box-shadow: 0 22px 38px rgba(8, 11, 24, 0.4);
  transition: transform 0.28s ease, border 0.28s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
}

.stat-icon {
  font-size: clamp(2rem, 4vw, 2.6rem);
  opacity: 0.85;
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  letter-spacing: 0.12em;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
}

.stat-sublabel {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.chart-container {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 16, 33, 0.78);
  backdrop-filter: blur(16px);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 1.5rem;
  box-shadow: 0 24px 42px rgba(8, 11, 24, 0.42);
}

.chart-title {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-bottom: 1.6rem;
}

.bonus-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999; /* ensure modal sits above other layers */
}

.bonus-modal {
  background: rgba(12, 15, 30, 0.95);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.bonus-modal h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  color: var(--white);
}

.bonus-modal p {
  margin: 0 0 1.5rem 0;
  color: rgba(255, 255, 255, 0.8);
}

.bonus-close {
  background: linear-gradient(135deg, #7c3aed, #38bdf8);
  color: white;
  border: 2px solid #ff0000; /* temporary red border to make it visible */
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.bonus-modal-overlay:focus {
  outline: none;
}

.bonus-close:hover {
  transform: translateY(-2px);
}

.prize-distribution-chart {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.prize-bar-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.prize-bar-label {
  min-width: 150px;
  font-size: 0.9rem;
  color: var(--white);
}

.prize-bar-container {
  flex: 1;
  height: 30px;
  background: var(--gray);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.prize-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red-light));
  border-radius: 15px;
  transition: width 1s ease-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  box-shadow: 0 0 10px var(--red);
}

.prize-bar-value {
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .info-section {
    grid-template-columns: 1fr;
  }

  .share-buttons {
    grid-template-columns: 1fr;
  }

  .share-link-container {
    flex-direction: column;
  }

  .notification {
    right: 10px;
    left: 10px;
  }

  .token-wrapper {
    transform: scale(0.95);
  }

  .token-copy {
    width: 100%;
  }

  .prize-name {
    font-size: 1.3rem;
  }

  .slot-machine {
    gap: 10px;
  }

  .slot-reel {
    width: 80px;
    height: 80px;
  }

  .slot-symbol {
    font-size: 2.5rem;
  }

  .animation-text {
    font-size: 1.2rem;
  }

  .loading-bar {
    width: 250px;
  }

  .config-grid {
    grid-template-columns: 1fr;
  }

  .prize-card-body {
    flex-direction: column;
    align-items: stretch;
  }
}
