/* دریافت و لغو بلیت */
.lines li { align-items: center; }
.lines .line-text { flex: 1; }

.btn-claim, .btn-cancel {
  font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  border-radius: 8px; padding: 0.2rem 0.8rem; border: 0;
}
.btn-claim { background: var(--green); color: #07281a; }
.btn-cancel { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-claim:hover { filter: brightness(1.1); }
.btn-cancel:hover { background: rgba(229, 100, 95, 0.12); }

.login-hint { color: var(--accent); font-size: 0.85rem; text-decoration: none; }
.login-hint:hover { text-decoration: underline; }

.my-ticket {
  background: rgba(63, 191, 127, 0.1);
  border: 1px solid rgba(63, 191, 127, 0.35);
  border-radius: 10px; padding: 0.5rem 0.6rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.my-ticket-title { font-size: 0.85rem; font-weight: 700; color: var(--green); }
.my-ticket small { color: var(--muted); font-size: 0.78rem; line-height: 1.6; }

.ticket-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.ticket-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--surface-2);
  border-inline-start: 4px solid var(--green);
  border-radius: var(--radius); padding: 0.9rem 1rem;
}
.ticket-row.status-canceled { border-inline-start-color: var(--gray); opacity: 0.7; }
.ticket-row.status-used { border-inline-start-color: var(--amber); }
.ticket-main h2 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.ticket-meta { color: var(--muted); font-size: 0.88rem; }
.ticket-main small { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.8rem; }
.ticket-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; text-align: end; }
.ticket-status { font-weight: 700; font-size: 0.9rem; }
@media (max-width: 520px) {
  .ticket-row { flex-direction: column; align-items: stretch; }
  .ticket-side { flex-direction: row; justify-content: space-between; align-items: center; }
}

.venue { margin: 0; color: var(--muted); font-size: 0.8rem; }

/* دکمه‌ی نمایش بلیت */
.btn-view {
  font: inherit; font-size: 0.85rem; font-weight: 700; text-decoration: none;
  border-radius: 8px; padding: 0.2rem 0.8rem;
  background: var(--accent); color: #2a1f04;
}
.btn-view:hover { filter: brightness(1.08); }

/* صفحه‌ی بلیت مهمان */
.gt-wrap { max-width: 400px; margin: 1.2rem auto 0; }
.gt {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #f3c963 0%, var(--accent) 48%, #d8a336 100%);
  color: #231a05;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.gt-top { padding: 1.5rem 1.5rem 1.25rem; }
.gt-kind { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; opacity: 0.7; }
.gt-title { margin: 0.15rem 0 0; font-size: 1.7rem; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }

/* خط پرفراژ و دو بریدگی کناری */
.gt-perf { position: relative; height: 0; border-top: 2px dashed rgba(35, 26, 5, 0.4); margin: 0 1rem; }
.gt-perf::before, .gt-perf::after {
  content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg);
}
.gt-perf::before { inset-inline-start: -30px; }
.gt-perf::after { inset-inline-end: -30px; }

.gt-body { padding: 1.25rem 1.5rem 1.3rem; display: grid; gap: 0.8rem; }
.gt-name { margin: 0; font-size: 1.25rem; font-weight: 700; }
.gt-when, .gt-venue { margin: 0; font-size: 1.02rem; line-height: 1.9; }
.gt-venue { font-weight: 700; }
.gt-address { margin: 0; font-size: 0.92rem; line-height: 1.8; opacity: 0.85; }
.gt-seats { margin: 0; font-weight: 700; }
.gt-seatnames { margin: 0; font-size: 0.95rem; font-weight: 700; }

/* قسمت پایینِ بلیت (کد و QR کوچک) */
.gt-stub { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 1.05rem 1.5rem 1.15rem; }
.gt-stub-text { min-width: 0; }
.gt-code-label { display: block; margin-bottom: 0.15rem; font-size: 0.75rem; opacity: 0.65; }
.gt-code { margin: 0; font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.12em; overflow-wrap: anywhere; }
.gt-qr-img { flex: none; line-height: 0; background: #fff; border-radius: 10px; padding: 5px; box-shadow: 0 2px 8px rgba(35, 26, 5, 0.25); }
.gt-qr-img svg { display: block; width: 92px; height: 92px; }

.gt-note {
  margin: 0; padding: 0.85rem 1.5rem 1rem;
  background: #231a05; color: var(--accent);
  font-size: 0.9rem; font-weight: 700; text-align: center;
}
.gt-back { display: block; margin: 1rem auto 0; width: fit-content; color: var(--muted); font-size: 0.9rem; }
.gt-back:hover { color: var(--text); }

/* تعداد نفرات در فرم صفحه‌ی اصلی */
.seats-label { font-size: 0.85rem; margin-inline-end: 6px; }
.seats-label select { font: inherit; margin-inline-start: 4px; padding: 0.1rem 0.3rem; border-radius: 6px; }
.has-ticket { font-size: 0.85rem; opacity: 0.75; }

/* سهمیه‌ی کل نمایش روی کارت صفحه‌ی اصلی */
.quota-note { margin: 0.3rem 0; font-size: 0.85rem; font-weight: 700; color: var(--accent); }

