* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Fredoka', sans-serif;
}

body {
  background-color: #000000;
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Navigasi Pindah Halaman */
.page {
  display: none;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.page.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ----------------------------------
   PAGE 1: LANDING PAGE (SUNBURST 2 KOLOM)
---------------------------------- */
#page-landing {
  background-color: #0a0a0a;
  overflow: hidden;
  padding: 40px 20px;
}

.sunburst {
  position: absolute;
  width: 200vmax;
  height: 200vmax;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    #111111 0deg 15deg,
    #000000 15deg 30deg
  );
  z-index: 1;
}

.landing-content {
  position: relative;
  z-index: 2;
  background-color: rgba(15, 15, 15, 0.96);
  padding: 30px;
  border-radius: 24px;
  border: 4px solid #333;
  box-shadow: 8px 8px 0px #1a1a1a;
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Responsive Desktop Layout */
@media (min-width: 768px) {
  .landing-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .landing-col-left, .landing-col-right {
    flex: 1;
  }
}

.landing-col-left {
  text-align: center;
}

.landing-title {
  font-family: 'Bungee', cursive;
  font-size: 2rem;
  color: #ffffff;
  text-shadow: 3px 3px 0px #444;
  margin-bottom: 6px;
  line-height: 1.2;
}

.landing-date {
  font-size: 1rem;
  font-weight: 800;
  color: #000000;
  background-color: #ffffff;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 12px;
  border: 2px solid #555;
  margin-bottom: 16px;
}

.btn-landing {
  font-family: 'Bungee', cursive;
  width: 100%;
  background-color: #222222;
  color: #ffffff;
  border: 3px solid #555;
  padding: 14px 20px;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 5px 5px 0px #111;
  transition: all 0.15s ease-in-out;
}

.btn-landing:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px #111;
  background-color: #333333;
}

.btn-landing:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #111;
}

.btn-landing.sold-out {
  background-color: #334155 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  box-shadow: 4px 4px 0px #000;
}

.info-section {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.info-box {
  border: 3px solid #444;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 4px 4px 0px #111;
}

.price-box {
  background-color: #1a1a1a;
  text-align: center;
}

.price-tag {
  font-family: 'Bungee', cursive;
  font-size: 0.8rem;
  color: #aaa;
}

.price-value {
  font-family: 'Bungee', cursive;
  font-size: 1.8rem;
  color: #ffffff;
  text-shadow: 2px 2px 0px #000;
  margin: 2px 0;
}

.price-value span {
  font-size: 0.85rem;
  color: #ccc;
  text-shadow: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
}

.duration-info {
  font-size: 0.85rem;
  font-weight: 800;
  color: #888;
}

.schedule-box {
  background-color: #111111;
}

.info-title {
  font-family: 'Bungee', cursive;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 10px;
  text-align: center;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-name {
  font-family: 'Bungee', cursive;
  background-color: #333;
  color: #fff;
  border: 2px solid #555;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.session-detail {
  font-size: 0.85rem;
  line-height: 1.3;
  color: #ccc;
}

.session-detail strong {
  color: #fff;
}

.reg-time {
  font-weight: 700;
  color: #ef4444;
  font-size: 0.8rem;
}

.session-divider {
  height: 2px;
  background-color: #333;
  margin: 8px 0;
}

/* ----------------------------------
   KOLOM KANAN: RULES & DETAILS
---------------------------------- */
.rules-box {
  background-color: #1a1a1a;
  height: 100%;
}

.rules-list {
  list-style-type: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rules-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.4;
}

.rules-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #fff;
  font-weight: 900;
}

.rules-list strong {
  color: #fff;
}

.rules-list em {
  color: #aaa;
  font-style: italic;
}

/* ----------------------------------
   PAGE 2: FORM PEMBELIAN
---------------------------------- */
#page-form {
  background: repeating-conic-gradient(
    #111111 0deg 15deg,
    #050505 15deg 30deg
  );
  padding: 20px 0;
}

.container {
  width: 100%;
  max-width: 440px;
  padding: 20px;
  z-index: 2;
}

.card {
  position: relative;
  background-color: #111111;
  padding: 28px;
  border-radius: 20px;
  border: 4px solid #444;
  box-shadow: 8px 8px 0px #000;
}

.btn-back {
  background: none;
  border: none;
  font-weight: 800;
  color: #aaa;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.btn-back:hover {
  text-decoration: underline;
  color: #fff;
}

.form-title {
  font-family: 'Bungee', cursive;
  text-align: center;
  font-size: 1.4rem;
  color: #ffffff;
  text-shadow: 2px 2px 0px #000;
  margin-bottom: 18px;
}

.stock-container {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.stock-card {
  flex: 1;
  background-color: #222;
  padding: 10px;
  border-radius: 12px;
  border: 3px solid #555;
  text-align: center;
  box-shadow: 3px 3px 0px #000;
}

.session-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #aaa;
  margin-bottom: 4px;
}

.stock-number {
  font-family: 'Bungee', cursive;
  font-size: 1.5rem;
  color: #ffffff;
  text-shadow: 1px 1px 0px #000;
}

.stock-card.sold-out-card {
  background-color: #7f1d1d !important;
  border-color: #450a0a !important;
}

.stock-card.sold-out-card .session-title,
.stock-card.sold-out-card .stock-number {
  color: #fca5a5 !important;
  text-shadow: none !important;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #ccc;
  text-transform: uppercase;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 3px solid #555;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

input:focus, select:focus {
  background-color: #222;
  border-color: #fff;
}

.btn {
  font-family: 'Bungee', cursive;
  width: 100%;
  padding: 14px;
  background-color: #ffffff;
  color: #000;
  border: 3px solid #555;
  border-radius: 12px;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 4px 4px 0px #000;
  margin-top: 10px;
  transition: all 0.15s ease;
}

.btn:hover {
  background-color: #e5e5e5;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

.btn:disabled {
  background-color: #334155;
  color: #94a3b8;
  border-color: #1e293b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.message {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  border: 3px solid #555;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
}

.message.success { background-color: #064e3b; color: #6ee7b7; border-color: #065f46; }
.message.error { background-color: #7f1d1d; color: #fca5a5; border-color: #991b1b; }
.hidden { display: none; }