/* Nari Saree Jalwa / ThreadGlam event ticketing */
:root {
  --tg-gold: #d4af37;
  --tg-gold-deep: #b8941f;
  --tg-purple: #5c1a7a;
  --tg-purple-deep: #3d0f54;
  --tg-pink: #e8a0bf;
  --tg-ink: #1a1020;
  --tg-cream: #faf6f0;
  --tg-muted: #7a6a80;
}

* { box-sizing: border-box; }
body.tickets-body {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--tg-ink);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(92, 26, 122, 0.35), transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(212, 175, 55, 0.2), transparent 45%),
    linear-gradient(165deg, #2a0a3d 0%, #4a1568 40%, #1a0828 100%);
  min-height: 100vh;
}

.tk-wrap { max-width: 980px; margin: 0 auto; padding: 28px 18px 64px; }
.tk-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.tk-brand-lockup {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
  text-decoration: none;
  line-height: 0;
}
.tk-brand-logo {
  height: 42px;
  width: auto;
  max-width: min(220px, 58vw);
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.28));
}
.tk-brand-presents {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f3e8ff;
  padding-bottom: 7px;
  white-space: nowrap;
  line-height: 1;
}
@media (min-width: 640px) {
  .tk-brand-logo { height: 48px; max-width: 240px; }
  .tk-brand-presents { font-size: 11px; padding-bottom: 9px; }
}
.tk-brand {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  letter-spacing: 0.22em; text-transform: uppercase; font-size: 13px;
  color: var(--tg-gold); text-decoration: none;
}
.tk-brand span { color: #f3e8ff; }
.tk-back { color: #d7c6e8; text-decoration: none; font-size: 15px; font-family: 'Jost', sans-serif; }
.tk-back:hover { color: var(--tg-gold); }

.tk-hero {
  position: relative; overflow: hidden; border-radius: 4px;
  min-height: 320px; display: grid; align-items: end;
  background: #2a0a3d;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.tk-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top; opacity: .88;
}
.tk-hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,6,32,.92) 10%, rgba(20,6,32,.25) 55%, rgba(92,26,122,.2));
}
.tk-hero-copy {
  position: relative; z-index: 1; padding: 36px 28px 30px; color: #fff;
}
.tk-hero-copy .eyebrow {
  font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--tg-gold); margin: 0 0 10px;
}
.tk-hero-copy h1 {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 10px; letter-spacing: .04em; line-height: 1.15;
}
.tk-hero-copy p { margin: 0; font-size: 20px; color: #f0e4f8; max-width: 34em; }

.tk-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; margin-top: 22px;
}
@media (max-width: 820px) {
  .tk-grid { grid-template-columns: 1fr; }
}

.tk-card {
  background: rgba(255,252,248,.96);
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 4px; padding: 26px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.tk-card h2 {
  font-family: 'Cinzel', serif; font-size: 22px; margin: 0 0 14px;
  color: var(--tg-purple-deep); letter-spacing: .04em;
}
.tk-meta { list-style: none; padding: 0; margin: 0 0 18px; font-family: 'Jost', sans-serif; font-size: 14.5px; }
.tk-meta li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #efe6d8; color: #3a2a44; }
.tk-meta strong { min-width: 72px; color: var(--tg-purple); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; padding-top: 2px; }
.tk-desc { font-size: 18px; line-height: 1.55; color: #3f3148; margin: 0 0 16px; }
.tk-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tk-pill {
  font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid rgba(92,26,122,.25); color: var(--tg-purple); background: #f7effc;
}

.tk-price-box {
  background: linear-gradient(135deg, #4a1568, #2a0a3d);
  color: #fff; border-radius: 4px; padding: 18px 16px; margin-bottom: 18px;
}
.tk-price-box .now {
  font-family: 'Cinzel', serif; font-size: 34px; color: var(--tg-gold); margin: 0;
}
.tk-price-box .now small { font-size: 14px; color: #d7c6e8; letter-spacing: .08em; margin-left: 6px; }
.tk-price-box .hint { font-family: 'Jost', sans-serif; font-size: 13px; color: #d7c6e8; margin: 6px 0 0; }
.tk-tiers { font-family: 'Jost', sans-serif; font-size: 13px; color: #cbb8dc; margin: 10px 0 0; padding: 0; list-style: none; }
.tk-tiers li { padding: 3px 0; }

label.tk-label {
  display: block; font-family: 'Jost', sans-serif; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--tg-muted); margin: 14px 0 6px;
}
.tk-card input[type=text],
.tk-card input[type=email],
.tk-card input[type=tel],
.tk-card input[type=number],
.tk-card select {
  width: 100%; padding: 11px 12px; border: 1px solid #dccfbe; border-radius: 4px;
  background: #fff; font-family: 'Jost', sans-serif; font-size: 15px; color: var(--tg-ink);
}
.tk-card input:focus, .tk-card select:focus {
  outline: 2px solid rgba(212,175,55,.45); border-color: var(--tg-gold);
}
.tk-checks { font-family: 'Jost', sans-serif; font-size: 14px; margin-top: 14px; display: grid; gap: 8px; }
.tk-checks label { display: flex; align-items: center; gap: 8px; color: #3a2a44; cursor: pointer; }

.tk-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid #efe6d8;
  font-family: 'Jost', sans-serif;
}
.tk-total strong { font-family: 'Cinzel', serif; font-size: 26px; color: var(--tg-purple); }

.tk-btn {
  display: inline-block; width: 100%; text-align: center; margin-top: 10px;
  padding: 14px 18px; border: 0; border-radius: 4px; cursor: pointer;
  background: linear-gradient(135deg, var(--tg-gold), var(--tg-gold-deep));
  color: #1a1020; font-family: 'Jost', sans-serif; font-weight: 600;
  font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.tk-btn:hover { filter: brightness(1.05); }
.tk-waiting {
  background: #f7effc; border: 1px solid rgba(92,26,122,.2);
  padding: 16px 14px; border-radius: 4px; text-align: center;
}
.tk-btn.secondary {
  background: transparent; border: 1px solid var(--tg-purple); color: var(--tg-purple);
  margin-top: 8px;
}
.tk-btn.ghost {
  background: transparent; border: 1px solid rgba(212,175,55,.5); color: var(--tg-gold);
}
.tk-btn-success {
  background: linear-gradient(135deg, #3d9a55, #2a7a3d) !important;
  color: #fff !important;
}
.tk-btn.tk-pulse {
  animation: tkPulse 1.2s ease-in-out 3;
}
@keyframes tkPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(61,154,85,.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(61,154,85,0); }
}

.tk-flash {
  font-family: 'Jost', sans-serif; padding: 12px 14px; border-radius: 4px; margin-bottom: 16px;
}
.tk-flash.error { background: #fde8e8; color: #8a1f1f; border: 1px solid #f0bdbd; }
.tk-flash.ok { background: #e8f6ea; color: #1f6b2e; border: 1px solid #b7e0bf; }

.tk-attendees { display: grid; gap: 8px; margin-top: 4px; }
.tk-attendees input { margin: 0; }

/* Order confirmation */
.tk-status {
  font-family: 'Jost', sans-serif; display: inline-block; padding: 4px 12px; border-radius: 99px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.tk-status.paid { background: #e8f6ea; color: #1f6b2e; }
.tk-status.pending { background: #fff4d6; color: #8a6500; }
.tk-status.cancelled { background: #fde8e8; color: #8a1f1f; }

.tk-step {
  font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tg-purple); margin: 0 0 6px;
}
.tk-pay-card { text-align: center; max-width: 520px; margin: 0 auto; }
.tk-pay-card .tk-meta { text-align: left; }
.tk-pay-amount {
  font-family: 'Cinzel', serif; font-size: 48px; color: var(--tg-purple-deep);
  margin: 8px 0 4px; line-height: 1;
}
.tk-pay-sub {
  font-family: 'Jost', sans-serif; font-size: 14px; color: #7a6a80; margin: 0 0 18px;
}
.tk-venmo-qr {
  background: #fff; border: 1px solid #efe6d8; padding: 18px; margin: 0 auto 14px;
  display: inline-block; border-radius: 4px;
}
.tk-venmo-qr img { display: block; width: min(280px, 70vw); height: auto; margin: 0 auto; }
.tk-venmo-caption {
  font-family: 'Jost', sans-serif; font-size: 13px; color: #7a6a80; margin: 10px 0 0;
}
.tk-venmo-handle {
  font-family: 'Jost', sans-serif; font-size: 18px; font-weight: 600;
  color: var(--tg-purple); margin: 4px 0 0;
}
.tk-pay-divider {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 16px;
  font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: #9a8aa0;
}
.tk-pay-divider::before, .tk-pay-divider::after {
  content: ''; flex: 1; height: 1px; background: #e5d9ec;
}
.tk-hint {
  font-family: 'Jost', sans-serif; font-size: 13px; color: #7a6a80; margin: 12px 0 0;
  line-height: 1.45;
}

.tk-ticket-list { display: grid; gap: 14px; margin-top: 18px; }
.tk-ticket-mini {
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  padding: 14px; border: 1px solid #efe6d8; background: #fff; flex-wrap: wrap;
}
.tk-ticket-mini img { width: 88px; height: 88px; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tk-actions .tk-btn { width: auto; padding: 11px 16px; }

.tk-pay-box {
  background: #f7effc; border: 1px dashed rgba(92,26,122,.35); padding: 14px 16px;
  font-family: 'Jost', sans-serif; font-size: 14px; color: #3a2a44; white-space: pre-wrap;
  margin: 12px 0;
}

/* Printable ticket */
body.ticket-print { background: #ece6f2; }
.ticket-sheet {
  max-width: 420px; margin: 28px auto; background: #fff;
  border: 2px solid var(--tg-gold); box-shadow: 0 10px 30px rgba(60,20,80,.15);
  overflow: hidden;
}
.ticket-head {
  background: linear-gradient(135deg, var(--tg-purple), var(--tg-purple-deep));
  color: #fff; padding: 22px 20px 18px; text-align: center;
}
.ticket-head .org {
  font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--tg-gold); margin: 0 0 8px;
}
.ticket-head h1 {
  font-family: 'Cinzel', serif; font-size: 26px; margin: 0 0 6px; letter-spacing: .04em;
}
.ticket-head p { margin: 0; font-size: 16px; color: #e8d7f5; }
.ticket-body { padding: 20px; text-align: center; }
.ticket-body .who {
  font-family: 'Cinzel', serif; font-size: 22px; color: var(--tg-purple-deep); margin: 0 0 4px;
}
.ticket-body .meta {
  font-family: 'Jost', sans-serif; font-size: 13px; color: #666; margin: 0 0 16px; line-height: 1.5;
}
.ticket-body .qr { width: 180px; height: 180px; margin: 0 auto 10px; display: block; }
.ticket-body .code {
  font-family: 'Jost', monospace; font-size: 14px; letter-spacing: .12em; color: #444;
}
.ticket-foot {
  border-top: 1px dashed #dccfbe; padding: 12px 20px 18px;
  font-family: 'Jost', sans-serif; font-size: 12px; color: #777; text-align: center;
}
.ticket-toolbar {
  max-width: 420px; margin: 0 auto 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding: 0 12px;
}
.ticket-toolbar .tk-btn { width: auto; }

@media print {
  body.ticket-print { background: #fff; }
  .ticket-toolbar, .no-print { display: none !important; }
  .ticket-sheet { margin: 0; box-shadow: none; max-width: none; }
}
