* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #1c2430 0%, #253445 46%, #f0dca0 100%);
  min-height: 100vh;
  padding: 22px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.sidebar {
  background: linear-gradient(180deg, rgba(247, 239, 214, 0.95), rgba(255, 255, 255, 0.88));
  padding: 32px 24px;
  overflow-y: auto;
  max-height: 100vh;
}

.main {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

h1 {
  font-size: 25px;
  font-weight: 600;
  color: #18202b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

h2 {
  font-size: 16px;
  font-weight: 600;
  color: #202734;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(28, 36, 48, 0.14);
}

.brand-lockup {
  margin-bottom: 26px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(24, 32, 43, 0.56);
  margin-bottom: 10px;
}

.brand-lockup p,
.preview-header p,
.helper-text {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(25, 31, 41, 0.78);
}

.preview-header h1 {
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(25, 31, 41, 0.82);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
  font-weight: 600;
  color: rgba(25, 31, 41, 0.88);
  width: fit-content;
}

.toggle-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #8c6a18;
}

.toggle-row span {
  white-space: nowrap;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid rgba(31, 42, 55, 0.16);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(28, 36, 48, 0.45);
  box-shadow: 0 0 0 3px rgba(28, 36, 48, 0.08);
}

.photo-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 4px;
  scroll-snap-type: x mandatory;
}

.photo-rail::-webkit-scrollbar {
  height: 8px;
}

.photo-rail::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
}

.photo-rail::-webkit-scrollbar-thumb {
  background: rgba(30, 38, 50, 0.28);
  border-radius: 999px;
}

.photo-option {
  border: 1px solid rgba(30, 38, 50, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 16px rgba(20, 27, 39, 0.08);
  scroll-snap-align: start;
}

.photo-option.active {
  border-color: rgba(30, 38, 50, 0.5);
  box-shadow: 0 0 0 3px rgba(30, 38, 50, 0.12);
}

.photo-option img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  display: block;
}

.photo-option span {
  padding: 8px 6px 10px;
  font-size: 11px;
  line-height: 1.2;
  color: #24303f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-rail-empty {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(25, 31, 41, 0.68);
  font-size: 13px;
}

.btn-gold {
  background: linear-gradient(135deg, #8d6f1d 0%, #e6c86a 100%);
  color: #2f2410;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(149, 120, 39, 0.24);
}

.action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #1d2633 0%, #475569 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(23, 32, 46, 0.24);
}

.btn-success {
  background: linear-gradient(135deg, #d7b24d 0%, #f0dca0 100%);
  color: #2f2611;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(149, 120, 39, 0.24);
}

.preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.46), transparent 36%),
    linear-gradient(180deg, rgba(15, 18, 24, 0.08), rgba(15, 18, 24, 0.04));
  border-radius: 20px;
  padding: 28px;
  min-height: 640px;
  flex: 1;
}

#ticketCanvas {
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  width: min(100%, 430px);
  height: auto;
}

.info-banner {
  background: linear-gradient(135deg, rgba(244, 231, 184, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(215, 178, 77, 0.55);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #584415;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-banner i {
  font-size: 16px;
}

@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    max-height: none;
  }

  .preview-container {
    min-height: auto;
  }
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #999;
}