body {
  display: grid;
  grid-template-rows: 60px 1fr;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-color, #000);
  padding: 0;
}

.select-slot-header {
  grid-row: 1;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 8px;
  letter-spacing: 1px;
}

.select-slot-main {
  grid-row: 2;
  overflow-y: auto;
  padding: 24px 0 100px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* Stepper Styles */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-weight: 500;
}

.step.active {
  color: #fff;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.step.active .step-num {
  background: var(--primary-color, #1877f2);
  color: #fff;
}

.step-sep {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.1);
}

.event-mini-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  margin: 0 16px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.event-text h2 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.event-text p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.2;
}

/* Legend Styles */
.legend-container {
  display: flex;
  gap: 16px;
  padding: 0 16px 16px;
  margin-bottom: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.available {
  background: #4caf50;
}

.dot.filling-fast {
  background: #ff9800;
}

.dot.sold-out {
  background: #9e9e9e;
}

/* Selection Card Container */
.selection-card {
  background: rgba(255, 255, 255, 0.02);
  margin: 0 12px;
  border-radius: 20px;
  padding: 24px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.booking-opening-notice {
  margin: 0;
  padding: 24px 12px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.selection-container {
  padding: 0;
}

.selection-section {
  margin-bottom: 24px;
}

.selection-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.slot-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slot-card.available {
  border-color: #4caf50;
}

.slot-card.filling-fast {
  border-color: #ff9800;
}

.slot-card.sold-out,
.slot-card.closed {
  border-color: #9e9e9e;
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.slot-card:not(.sold-out):not(.closed):hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.slot-card.available:hover {
  border-color: #81c784;
  background: rgba(76, 175, 80, 0.05);
}

.slot-card.filling-fast:hover {
  border-color: #ffb74d;
  background: rgba(255, 152, 0, 0.05);
}

.slot-card.selected {
  background: rgba(24, 119, 242, 0.15) !important;
  border-color: var(--primary-color, #1877f2) !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.2);
}

.slot-date-full {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.slot-time {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.slot-status {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.confirm-btn {
  width: 100%;
  max-width: 568px;
  height: 52px;
  background: var(--primary-color, #1877f2);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.confirm-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

.confirm-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

@media (max-width: 480px) {
  .slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
