.ticket {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #0e132a, #0f1d46);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.ticket__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: rgba(0, 0, 0, .25);
}

.ticket__badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-300);
  color: #0b1020;
  font-weight: 700;
  font-size: 12px;
}

.ticket__body {
  display: flex;
  gap: 18px;
  padding: 18px;
}

.ticket__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}

.ticket__avatar {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.ticket__name {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.ticket__handle {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.ticket__right {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.ticket__qr--empty {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: repeating-linear-gradient(
    45deg,
    #0b1224,
    #0b1224 8px,
    #0f1d46 8px,
    #0f1d46 16px
  );
  border: 1px dashed var(--border);
}

.ticket__meta {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, .06);
  padding: 8px 10px;
  border-radius: 10px;
}

.meta span {
  color: var(--muted);
  font-size: 12px;
}

.meta strong {
  font-weight: 700;
}

.ticket__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, .25);
  font-size: 12px;
  color: var(--muted);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #19264a;
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { filter: brightness(1.05); }
.label {
  font-weight: 700;
  letter-spacing: .2px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0b1128;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder {
  color: rgba(255,255,255,.42);
}
.input:focus {
  border-color: var(--blue-400, #6ea8ff);
  box-shadow: 0 0 0 3px rgba(110,168,255,.18);
}

.h-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.h-scroll::-webkit-scrollbar { height: 8px; }
.h-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}
.ticket {
  min-width: 760px;
}
.ticket__qr {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ticket__qr canvas,
.ticket__qr img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  image-rendering: pixelated;
}

@media (min-width: 900px) {
  .ticket { min-width: 0; }
}

.error.error--below {
  color: #ff2e2e !important;
  font-weight: 800;
  margin-top: 6px;
}

#toast-root {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: #13213f;
  border: 1px solid var(--border);
  color: #ff2e2e !important;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  pointer-events: auto;
}
.error {
  color: #ff2e2e !important;
  font-weight: 800 !important;
  font-size: 12px;
  line-height: 1.2;
  min-height: 18px;
  margin: 0;
}

.error:empty { display: none; }

.error::before {
  content: "* ";
  font-weight: 900;
}
.error:empty::before { content: none; }

.error.error--above { margin-bottom: 6px; }
.error.error--below { margin-top: 6px; }