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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0d0d1a;
  color: #e0e0e0;
  min-height: 100vh;
}

header {
  background: linear-gradient(135deg, #FF6600 0%, #e55b00 100%);
  padding: 28px 24px 20px;
  text-align: center;
}
header h1 { font-size: 32px; color: #fff; font-weight: 800; letter-spacing: -0.5px; }
.tagline { color: rgba(255,255,255,0.9); margin-top: 4px; font-size: 15px; }

main { max-width: 480px; margin: 0 auto; padding: 24px 16px; }

.hidden { display: none !important; }

/* Loading */
.loading { text-align: center; padding: 60px 0; }
.loading p { font-size: 18px; font-weight: 600; }
.loading .sub { font-size: 14px; color: #888; margin-top: 4px; }
.spinner {
  width: 44px; height: 44px;
  border: 4px solid #222;
  border-top-color: #FF6600;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* State screens */
.state { text-align: center; padding: 48px 16px; }
.state .icon { font-size: 48px; margin-bottom: 16px; }
.state h2 { font-size: 22px; margin-bottom: 8px; }
.state p { color: #aaa; line-height: 1.5; margin-bottom: 20px; }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: #FF6600;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { background: #e55b00; }
.btn-secondary {
  background: #1a1a2e;
  color: #FF6600;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  border: 1px solid #333;
  cursor: pointer;
}
.btn-secondary:hover { background: #222240; }

/* Venue + user bar */
.venue-bar {
  text-align: center;
  padding: 12px;
  background: #111122;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #aaa;
}
.venue-bar strong { color: #fff; }
.user-bar {
  text-align: center;
  padding: 8px;
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

/* Option cards */
.option-cards { display: flex; flex-direction: column; gap: 16px; }

.option-card {
  background: linear-gradient(145deg, #151530 0%, #1a1a3a 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #252545;
  transition: transform 0.15s ease;
}
.option-card:hover { transform: translateY(-2px); }

.card-label {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.label-now { background: #1a4d1a; color: #4ade80; }
.label-tonight { background: #4d3a1a; color: #fbbf24; }
.label-matinee { background: #3d1a4d; color: #c084fc; }
.label-weekend { background: #1a2d4d; color: #60a5fa; }

.card-body { padding: 16px 20px; }
.card-header-row { display: flex; gap: 14px; margin-bottom: 12px; }
.card-poster {
  width: 70px;
  height: 104px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.card-header-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-movie { font-size: 20px; font-weight: 700; color: #fff; }
.card-cast { font-size: 13px; color: #aaa; line-height: 1.3; }
.card-rating-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  border: 1px solid #fbbf24;
  border-radius: 4px;
  padding: 1px 6px;
  margin-right: 6px;
}
.card-tomato {
  font-size: 12px;
  color: #f87171;
  font-weight: 600;
}
.card-details { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #bbb; }
.card-details .detail-label { color: #777; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.card-reasoning {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #c8b4e0;
  font-style: italic;
  padding: 8px 12px;
  background: rgba(192, 132, 252, 0.08);
  border-left: 3px solid #c084fc;
  border-radius: 0 8px 8px 0;
}

.card-footer {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #252545;
}
.card-price { font-size: 22px; font-weight: 800; color: #FF6600; }
.card-price .price-sub { font-size: 12px; color: #777; font-weight: 400; }

.buy-btn {
  background: #FF6600;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.buy-btn:hover { background: #e55b00; }
.buy-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Confirmation */
.confirm-details {
  background: #111122;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0 24px;
  text-align: left;
}
.confirm-details .conf-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.confirm-details .conf-label { color: #777; }
.confirm-details .conf-value { color: #fff; font-weight: 600; }
.confirm-details .conf-code {
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #252545;
  font-size: 24px;
  font-weight: 800;
  color: #FF6600;
  letter-spacing: 2px;
}
.confirm-details .conf-simulated {
  text-align: center;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: #4d3a1a;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
}

/* Sign-in form */
.signin-form { display: flex; flex-direction: column; gap: 12px; max-width: 320px; margin: 0 auto; }
.signin-form input {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #111122;
  color: #fff;
  font-size: 15px;
}
.signin-form input::placeholder { color: #666; }
.signin-form input:focus { outline: none; border-color: #FF6600; }
.signin-error { color: #f87171; font-size: 14px; margin: 0; }
