/* Humans Tickets Widget — Dark theme v12 */
.ht-widget {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  max-width: 480px;
  margin: 0 auto;
  color: #e0e0e0;
}

.ht-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
}

.ht-img {
  width: 100%;
  height: auto;
  display: block;
}

.ht-body {
  padding: 24px;
}

.ht-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #f5f5f5;
}

.ht-meta {
  font-size: 13px;
  color: #888;
  margin: 0 0 4px;
}

.ht-desc {
  font-size: 14px;
  color: #aaa;
  margin: 16px 0;
  line-height: 1.5;
}

.ht-price {
  font-size: 22px;
  font-weight: 700;
  color: #d4af37;
  margin: 16px 0 4px;
}

.ht-avail {
  font-size: 12px;
  color: #666;
  margin-bottom: 16px;
}

.ht-divider {
  border: none;
  border-top: 1px solid #333;
  margin: 20px 0;
}

/* Form elements */
.ht-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ht-input,
.ht-select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: #222 !important;
  border: 1px solid #444 !important;
  border-radius: 8px;
  color: #e0e0e0 !important;
  -webkit-text-fill-color: #e0e0e0 !important;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.ht-input:focus,
.ht-select:focus {
  border-color: #d4af37 !important;
}

.ht-input::placeholder {
  color: #555 !important;
}

/* Autofill override — prevents browser from applying white background */
.ht-input:-webkit-autofill,
.ht-input:-webkit-autofill:hover,
.ht-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #222 inset !important;
  -webkit-text-fill-color: #e0e0e0 !important;
  caret-color: #e0e0e0;
  border-color: #444 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.ht-row {
  display: flex;
  gap: 12px;
}

.ht-row > * {
  flex: 1;
}

.ht-guests-title {
  font-size: 13px;
  color: #888;
  margin: 8px 0 6px;
}

/* Buttons */
.ht-btn {
  display: block;
  width: 75%;
  margin: 8px auto 0;
  padding: 14px;
  background: #d4af37;
  color: #fff;
  border: none;
  border-radius: 9999px !important;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}

.ht-btn:hover {
  background: #b8962e;
}

.ht-btn:disabled {
  background: #444;
  color: #777;
  cursor: not-allowed;
}

/* States */
.ht-loading,
.ht-error,
.ht-sold-out,
.ht-closed {
  text-align: center;
  padding: 40px 24px;
}

.ht-loading {
  color: #666;
  font-size: 14px;
}

.ht-error {
  color: #ef4444;
  font-size: 14px;
}

.ht-sold-out {
  color: #f59e0b;
  font-size: 16px;
  font-weight: 600;
}

.ht-closed {
  color: #666;
  font-size: 14px;
}

/* Spinner */
.ht-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #555;
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: ht-spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes ht-spin {
  to { transform: rotate(360deg); }
}

/* Listing mode */
.ht-listing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.ht-listing-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.ht-listing-card:hover {
  border-color: #555;
  transform: translateY(-2px);
}

.ht-listing-img-wrap {
  width: 100%;
  overflow: hidden;
}

.ht-listing-img {
  width: 100%;
  height: auto;
  display: block;
}

.ht-listing-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ht-listing-date {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.ht-listing-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: #f5f5f5;
  line-height: 1.25;
  flex: 1;
}

.ht-listing-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin: 14px 0 0;
}

.ht-listing-price {
  font-size: 16px;
  font-weight: 700;
  color: #d4af37;
}

.ht-listing-avail {
  font-size: 11px;
  color: #666;
}

.ht-listing-soldout {
  font-size: 13px;
  font-weight: 600;
  color: #f59e0b;
  align-self: flex-end;
}

.ht-listing-btn {
  width: 75%;
  margin: 0 auto;
  display: block;
  padding: 10px;
  font-size: 14px;
}

.ht-btn-soldout {
  opacity: 0.45;
  cursor: not-allowed;
  background: #555;
  border-color: #555;
}

/* Back button */
.ht-back-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.ht-back-btn:hover {
  color: #d4af37;
}

/* Coupon */
.ht-coupon-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.ht-coupon-row .ht-input {
  flex: 1;
  margin-bottom: 0;
  text-transform: uppercase;
}
.ht-coupon-btn {
  padding: 0 16px;
  background: #333;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 9999px !important;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.ht-coupon-btn:hover:not(:disabled) { background: #444; }
.ht-coupon-btn:disabled { opacity: .5; cursor: default; }
.ht-coupon-remove {
  background: #4a1c1c;
  border-color: #6b2c2c;
  color: #f87171;
  font-size: 18px;
  padding: 0 12px;
}
.ht-coupon-remove:hover { background: #5a2020; }
.ht-coupon-ok {
  color: #4ade80;
  font-size: 13px;
  margin: 6px 0 0;
}
.ht-coupon-err {
  color: #f87171;
  font-size: 13px;
  margin: 6px 0 0;
}

/* Policies link */
.ht-policies-link {
  color: #888;
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: #444;
  transition: color 0.2s;
}
.ht-policies-link:hover {
  color: #d4af37;
  text-decoration-color: #d4af37;
}

/* Type boxes */
.ht-type-boxes {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.ht-type-box {
  flex: 1;
  background: #222;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ht-type-box:hover {
  border-color: #d4af37;
}

.ht-type-box.ht-type-active {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
}

.ht-type-box.ht-type-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ht-type-name {
  font-size: 14px;
  font-weight: 600;
  color: #f5f5f5;
}

.ht-type-active .ht-type-name {
  color: #d4af37;
}

.ht-type-price {
  font-size: 13px;
  color: #f5f5f5;
}

.ht-type-active .ht-type-price {
  color: #d4af37;
}

.ht-type-soldout {
  font-size: 11px;
  color: #f59e0b;
  font-weight: 600;
}


/* Social links */
.ht-social {
  display: flex;
  gap: 12px;
  margin: 12px 0 4px;
}
.ht-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2a2a2a;
  color: #aaa;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.ht-social-link:hover { background: #333; color: #d4af37; }
.ht-social-link svg { width: 16px; height: 16px; fill: currentColor; }

/* Responsive */
@media (max-width: 640px) {
  .ht-listing {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 20px;
  }
}

/* Month separators in listing */
.ht-month-sep {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin: 24px 0 8px;
}
.ht-month-sep::before,
.ht-month-sep::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #d4af37;
}
.ht-month-sep-label {
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #d4af37;
}
