:root {
  --giveaway-bg: #111;
  --giveaway-text: #f0f0f0;
  --giveaway-accent: #ffd700;
  --giveaway-accent-dark: #c9a400;
  --giveaway-border: #333;
  --giveaway-radius: 12px;
  --giveaway-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  --font-stack: 'Segoe UI', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: var(--giveaway-text);
  font-family: var(--font-stack);
  height: 100%;
}

/* 🎨 Hero */
.giveaway-hero {
  width: 100%;
  background: linear-gradient(to right, #1f1f1f, #292929);
  padding: 60px 20px 40px;
  text-align: center;
  box-shadow: var(--giveaway-shadow);
  position: relative;
}

.lrt-logo-corner {
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 10;
}
.lrt-logo-corner img {
  height: 128px;
  width: auto;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.2));
  transition: transform 0.3s ease;
}
.lrt-logo-corner img:hover {
  transform: scale(1.06);
}

.giveaway-hero h1 {
  font-size: 2em;
  color: var(--giveaway-accent);
  margin: 0;
}
.giveaway-hero p {
  font-size: 1.1em;
  color: #ccc;
  margin: 8px auto 0;
  max-width: 720px;
}

/* 📦 Container */
.giveaway-container {
  max-width: 720px;
  margin: 40px auto;
  padding: 24px;
  background-color: var(--giveaway-bg);
  border-radius: var(--giveaway-radius);
  box-shadow: var(--giveaway-shadow);
}

/* 🔖 Section Titles */
.giveaway-prizes h2,
.giveaway-countdown h2,
.giveaway-form h2,
.giveaway-participants h2,
.giveaway-winners h2,
.giveaway-rules h3,
.giveaway-contact h3,
.admin-panel h2 {
  margin-top: 24px;
  color: var(--giveaway-accent);
  font-size: 1.3em;
}

/* 🏆 Prizes */
.giveaway-prizes ul {
  list-style: disc inside;
  padding-left: 16px;
  margin-top: 8px;
}

/* ⏳ Countdown */
#countdown {
  font-size: 1.5em;
  text-align: center;
  font-weight: bold;
  color: var(--giveaway-text);
  margin-top: 8px;
}

/* 📝 Form */
.giveaway-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.giveaway-form input {
  padding: 10px 12px;
  font-size: 1em;
  border: 1px solid var(--giveaway-border);
  border-radius: var(--giveaway-radius);
  background-color: #1a1a1a;
  color: var(--giveaway-text);
  max-width: 300px;
}
.giveaway-form input:focus {
  border-color: var(--giveaway-accent);
  outline: none;
}
.giveaway-form input:focus-visible,
.giveaway-form button:focus-visible {
  outline: 2px solid var(--giveaway-accent);
  outline-offset: 2px;
}
.giveaway-form button {
  background-color: var(--giveaway-accent);
  color: #000;
  font-weight: bold;
  padding: 12px 16px;
  font-size: 1em;
  border: none;
  border-radius: var(--giveaway-radius);
  cursor: pointer;
  transition: background-color 0.3s;
}
.giveaway-form button:hover {
  background-color: var(--giveaway-accent-dark);
}
.giveaway-form button:disabled,
.giveaway-form button.submitting {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--giveaway-accent-dark);
}
#form-message {
  margin-top: 6px;
  font-size: 0.95em;
  text-align: center;
}
#form-message.success { color: limegreen; }
#form-message.error { color: red; }
#form-message.warning { color: orange; }
#form-message.info { color: lightblue; }

/* ✅ Secure Hidden Token */
#csrf-token {
  display: none;
}

/* ✅ reCAPTCHA warning */
.recaptcha-error {
  color: crimson;
  font-size: 0.9em;
  margin-top: 6px;
}

/* ✅ Submission End Notice */
.giveaway-ended {
  margin-top: 14px;
  font-size: 1em;
  text-align: center;
  background-color: #220000;
  border: 1px solid crimson;
  color: #ffaaaa;
  padding: 10px;
  border-radius: var(--giveaway-radius);
}

/* 👥 Participants */
.giveaway-participants ul {
  margin-top: 12px;
  padding-left: 16px;
  list-style: square;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--giveaway-border);
  border-radius: var(--giveaway-radius);
  background-color: #1a1a1a;
  padding: 10px;
}
.giveaway-participants li {
  padding: 4px 0;
  color: #ccc;
}

/* 🔢 Pagination */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.pagination-controls button {
  background-color: #1a1a1a;
  border: 1px solid var(--giveaway-border);
  color: var(--giveaway-text);
  padding: 6px 12px;
  border-radius: var(--giveaway-radius);
  cursor: pointer;
}
.pagination-controls button:hover {
  background-color: #2a2a2a;
}

/* 🏆 Winners */
.giveaway-winners {
  margin-top: 32px;
}
#winner-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.winner-card {
  background-color: #1a1a1a;
  border: 1px solid var(--giveaway-border);
  padding: 10px 14px;
  border-radius: var(--giveaway-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.winner-card span {
  font-size: 0.95em;
}
.status {
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 8px;
  text-transform: uppercase;
}
.status.pending { background-color: orange; color: #000; }
.status.confirmed { background-color: limegreen; color: #000; }
.status.rerolled { background-color: crimson; color: #fff; }

/* 📜 Rules */
.giveaway-rules {
  margin-top: 32px;
  font-size: 0.95em;
  background-color: #1a1a1a;
  padding: 16px;
  border-radius: var(--giveaway-radius);
  border: 1px solid var(--giveaway-border);
  color: #aaa;
}
.giveaway-rules-list {
  list-style: none;
  padding-left: 0;
}
.giveaway-rules-list li {
  margin-bottom: 6px;
}

/* ☎️ Contact */
.giveaway-contact {
  margin-top: 32px;
  padding: 16px;
  background-color: #1a1a1a;
  border: 1px solid var(--giveaway-border);
  border-radius: var(--giveaway-radius);
  color: #eee;
  font-size: 0.95em;
}
.giveaway-contact a {
  color: var(--giveaway-accent);
  text-decoration: underline;
}
.giveaway-contact ul {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
}
.giveaway-contact li {
  margin-bottom: 6px;
}

/* 🎉 Footer */
.giveaway-footer {
  background-color: #000;
  color: #888;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  border-top: 1px solid var(--giveaway-border);
  width: 100%;
}

/* 📱 Responsive */
@media (max-width: 640px) {
  .giveaway-container {
    padding: 16px;
  }
  .giveaway-hero h1 {
    font-size: 1.5em;
    text-align: center;
  }
  .lrt-logo-corner img {
    height: 44px;
  }
  .giveaway-prizes h2,
  .giveaway-countdown h2,
  .giveaway-form h2,
  .giveaway-participants h2,
  .giveaway-rules h3,
  .giveaway-winners h2,
  .giveaway-contact h3,
  .admin-panel h2 {
    font-size: 1.1em;
  }
  .giveaway-form input,
  .admin-panel input {
    width: 100%;
  }
  .winner-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
