.buy-tickets-page {
  padding: 100px 0 50px;
  background: #F8F8F8;
  min-height: calc(100vh - 48px);
}

.buy-tickets-page .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.buy-tickets-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.buy-tickets-main {
  background: white;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.buy-tickets-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.step-heading {
  font-size: 24px;
  font-weight: 700;
  color: #2C2C2C;
  margin-bottom: 16px;
}

.section-divider {
  border: none;
  border-top: 1px solid #E0E0E0;
  margin: 28px 0;
}

/* Draw Tabs */
.draw-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #E0E0E0;
  margin-bottom: 16px;
}

.draw-tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: -2px;
}

.draw-tab:hover {
  color: #4A9B7F;
}

.draw-tab.active {
  color: #4A9B7F;
  border-bottom-color: #4A9B7F;
}

.draw-info-text {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* Line Selector */
.line-selector {
  background: #FAFAFA;
  padding: 24px;
  border-radius: 6px;
  border: 1px solid #E8E8E8;
}

.line-header {
  margin-bottom: 14px;
}

.line-label {
  font-size: 15px;
  font-weight: 600;
  color: #2C2C2C;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.number-btn {
  aspect-ratio: 1;
  border: 1.5px solid #D0D0D0;
  background: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.number-btn:hover {
  border-color: #4A9B7F;
  background: #F0F9F6;
}

.number-btn.selected {
  background: #4A9B7F;
  border-color: #4A9B7F;
  color: white;
}

.number-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.grand-number-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #E0E0E0;
}

.grand-number-label {
  font-size: 14px;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 12px;
}

.grand-numbers-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  max-width: 350px;
}

.line-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn-action {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  background: white;
  border: 2px solid #E0E0E0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
}

.btn-action:hover {
  background: #F5F5F5;
  border-color: #C0C0C0;
}

.btn-action-dark {
  background: #2C2C2C;
  color: white;
  border-color: #2C2C2C;
}

.btn-action-dark:hover {
  background: #1C1C1C;
}

.info-message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: #E8F5F1;
  border-radius: 5px;
  font-size: 12px;
  color: #2C2C2C;
}

.info-message svg {
  width: 14px;
  height: 14px;
}

/* Cart Summary */
.cart-summary {
  background: #FAFAFA;
  padding: 24px;
  border-radius: 6px;
  border: 1px solid #E8E8E8;
  min-height: 160px;
}

.cart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.empty-message {
  font-size: 13px;
  color: #999;
  text-align: center;
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.cart-line {
  background: white;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #E0E0E0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-line-info {
  flex: 1;
}

.cart-line-title {
  font-size: 13px;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 3px;
}

.cart-line-numbers {
  font-size: 12px;
  color: #666;
}

.cart-line-price {
  font-size: 14px;
  font-weight: 600;
  color: #4A9B7F;
  margin-right: 10px;
}

.cart-line-remove {
  background: transparent;
  border: none;
  color: #FF5252;
  cursor: pointer;
  padding: 4px;
  transition: opacity 0.3s ease;
}

.cart-line-remove:hover {
  opacity: 0.7;
}

.promo-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #E0E0E0;
}

.promo-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 10px;
}

.promo-input-group {
  display: flex;
  gap: 10px;
}

.promo-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  border: 2px solid #E0E0E0;
  border-radius: 5px;
  font-family: inherit;
}

.promo-input:focus {
  outline: none;
  border-color: #4A9B7F;
}

.btn-promo {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  background: #2C2C2C;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-promo:hover {
  background: #1C1C1C;
}

/* Order Totals */
.order-totals {
  background: white;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.order-totals-title {
  font-size: 18px;
  font-weight: 700;
  color: #2C2C2C;
  margin-bottom: 16px;
}

.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: #555;
}

.discount-line {
  color: #4A9B7F;
}

.order-divider {
  border: none;
  border-top: 2px solid #E0E0E0;
  margin: 14px 0;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #2C2C2C;
}

/* Checkout Details */
.checkout-details {
  background: white;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.checkout-title {
  font-size: 18px;
  font-weight: 700;
  color: #2C2C2C;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 6px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  border: 1.5px solid #E0E0E0;
  border-radius: 5px;
  font-family: inherit;
  background: white;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #4A9B7F;
}

.form-checkbox {
  display: flex;
  align-items: start;
  gap: 8px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #4A9B7F;
}

.checkbox-text {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}

.form-link {
  color: #4A9B7F;
  text-decoration: none;
}

.form-link:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  background: #2C2C2C;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.btn-submit:hover {
  background: #1C1C1C;
  transform: translateY(-2px);
}

.btn-submit:disabled {
  background: #CCC;
  cursor: not-allowed;
  transform: none;
}

.disclaimer {
  margin-top: 12px;
  padding: 12px;
  background: #FFF9E6;
  border-left: 3px solid #F4D03F;
  font-size: 11px;
  color: #555;
  line-height: 1.5;
  border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .buy-tickets-layout {
    grid-template-columns: 1fr;
  }

  .buy-tickets-sidebar {
    position: static;
  }

  .numbers-grid {
    grid-template-columns: repeat(10, 1fr);
  }
}

@media (max-width: 768px) {
  .buy-tickets-main {
    padding: 24px;
  }

  .step-heading {
    font-size: 24px;
  }

  .numbers-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
  }

  .number-btn {
    font-size: 13px;
  }

  .draw-tab {
    padding: 12px 20px;
    font-size: 14px;
  }

  .line-actions {
    flex-direction: column;
  }

  .btn-action {
    justify-content: center;
  }

  .order-totals,
  .checkout-details {
    padding: 24px;
  }
}

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

  .grand-numbers-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .promo-input-group {
    flex-direction: column;
  }

  .btn-promo {
    width: 100%;
  }
}
