/* ── FlexVConcert — Glassmorphism Stylesheet ──────────────────────────── */

:root {
  --accent: #770077;
  --accent-dark: #52268e;
  --accent-light: #ca42ff;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-blur: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
}

/* ── Background ──────────────────────────────────────────────────────────── */
.bg-glass-body {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg,
      #06000e 0%,
      #110020 25%,
      #1a0035 50%,
      #0d0022 75%,
      #04000c 100%);
}

/* ── Blobs ───────────────────────────────────────────────────────────────── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

.blob-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(202, 66, 255, 0.32) 0%, transparent 70%);
  top: -150px;
  right: -120px;
  animation: blobFloat 9s ease-in-out infinite;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(82, 38, 142, 0.30) 0%, transparent 70%);
  bottom: 80px;
  left: -80px;
  animation: blobFloat 12s ease-in-out infinite reverse;
}

.blob-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(119, 0, 119, 0.22) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blobFloat 15s ease-in-out infinite 2s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-28px) scale(1.06);
  }
}

/* ── Glass Navbar ────────────────────────────────────────────────────────── */
.glass-nav {
  background: rgba(8, 0, 20, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Glass Card ──────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-card-strong {
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  box-shadow:
    0 16px 52px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ── Gradient Text ───────────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #ca42ff 0%, #770077 55%, #52268e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #ffd54f 0%, #ffca28 50%, #ff8f00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #e580ff 0%, #ca42ff 55%, #770077 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glass Input ─────────────────────────────────────────────────────────── */
.glass-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  width: 100%;
  font-size: 0.925rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color .25s, background .25s, box-shadow .25s;
}

.glass-input:focus {
  outline: none;
  border-color: rgba(119, 0, 119, 0.75);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(119, 0, 119, 0.2);
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.glass-input option {
  background: #1a0030;
  color: #fff;
}

.glass-input.error {
  border-color: rgba(244, 67, 54, 0.7);
}

/* ── Glass Select ────────────────────────────────────────────────────────── */
.glass-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 10px;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-size: 0.925rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color .25s, background .25s, box-shadow .25s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
}

.glass-select:focus {
  outline: none;
  border-color: rgba(119, 0, 119, 0.75);
  background-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(119, 0, 119, 0.2);
}

.glass-select option {
  background: #140028;
  color: #fff;
}

/* ── Form Label ──────────────────────────────────────────────────────────── */
.form-label {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.field-error {
  color: #d46eff;
  font-size: 0.78rem;
  margin-top: 0.3rem;
  display: none;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #ca42ff 0%, #52268e 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 4px 22px rgba(119, 0, 119, 0.5);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(202, 66, 255, 0.5);
  background: linear-gradient(135deg, #d45eff 0%, #ca42ff 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, background .2s, border-color .2s;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* ── Ticket Card ─────────────────────────────────────────────────────────── */
.ticket-card {
  position: relative;
  cursor: default;
  transition: transform .3s, box-shadow .3s, border-color .3s, background .3s;
  overflow: hidden;
}

.ticket-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.ticket-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.ticket-card.selected {
  border-color: rgba(119, 0, 119, 0.7) !important;
  background: rgba(119, 0, 119, 0.12) !important;
  box-shadow: 0 0 0 2px rgba(202, 66, 255, 0.35), 0 16px 44px rgba(0, 0, 0, 0.5);
}

/* ── Payment Card ────────────────────────────────────────────────────────── */
.payment-card {
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .2s;
}

.payment-card:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateX(3px);
}

.payment-card.selected {
  border-color: rgba(119, 0, 119, 0.65) !important;
  background: rgba(119, 0, 119, 0.1) !important;
}

/* ── Stepper circles ─────────────────────────────────────────────────────── */
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  transition: all .3s;
  flex-shrink: 0;
}

.step-circle.active {
  background: linear-gradient(135deg, #ca42ff, #52268e);
  box-shadow: 0 0 20px rgba(202, 66, 255, 0.5);
  color: #fff;
}

.step-circle.completed {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  color: #fff;
}

.step-circle.pending {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.3);
}

/* ── Qty controls ────────────────────────────────────────────────────────── */
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, transform .15s;
  flex-shrink: 0;
  user-select: none;
}

.qty-btn:hover {
  background: rgba(119, 0, 119, 0.3);
  border-color: rgba(202, 66, 255, 0.5);
  transform: scale(1.1);
}

.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.qty-display {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ── Sticky bottom bar ───────────────────────────────────────────────────── */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 0, 20, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  padding: 0.85rem 1.25rem;
}

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.glass-alert {
  background: rgba(119, 0, 119, 0.15);
  border: 1px solid rgba(202, 66, 255, 0.28);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: #d46eff;
  font-size: 0.85rem;
}

.glass-alert-info {
  background: rgba(33, 150, 243, 0.1);
  border: 1px solid rgba(33, 150, 243, 0.28);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: #90caf9;
  font-size: 0.85rem;
}

.glass-alert-green {
  background: rgba(67, 160, 71, 0.1);
  border: 1px solid rgba(67, 160, 71, 0.28);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: #a5d6a7;
  font-size: 0.85rem;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.glass-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin: 1.4rem 0;
}

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-accent {
  background: rgba(119, 0, 119, 0.25);
  border: 1px solid rgba(202, 66, 255, 0.35);
  color: #d46eff;
}

.badge-purple {
  background: rgba(82, 38, 142, 0.25);
  border: 1px solid rgba(202, 66, 255, 0.3);
  color: #ca42ff;
}

.badge-gold {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: #ffd54f;
}

.badge-green {
  background: rgba(67, 160, 71, 0.15);
  border: 1px solid rgba(67, 160, 71, 0.35);
  color: #a5d6a7;
}

.badge-gray {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
}

/* ── Animations ──────────────────────────────────────────────────────────── */
.fade-in {
  animation: fadeIn .55s ease forwards;
}

.slide-up {
  animation: slideUp .45s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Success icon ────────────────────────────────────────────────────────── */
.success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #43a047, #2e7d32);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 48px rgba(67, 160, 71, 0.45);
  animation: popIn .55s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Input: remove number arrows ─────────────────────────────────────────── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
  background: rgba(233, 30, 99, 0.35);
  border-radius: 3px;
}

/* ── Seat-map visual ─────────────────────────────────────────────────────── */
.seatmap-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1;
}

.seatmap-ring {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

/* ── Hero glow line ──────────────────────────────────────────────────────── */
.hero-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #ca42ff, #770077, transparent);
  margin: 1rem 0;
  border-radius: 2px;
}

/* ── Timeline connector ──────────────────────────────────────────────────── */
.timeline-connector {
  width: 2px;
  background: linear-gradient(180deg, rgba(202, 66, 255, 0.5), rgba(119, 0, 119, 0.1));
  margin: 0 auto;
  height: 32px;
}

/* ── Responsive helpers ──────────────────────────────────────────────────── */
@media (max-width: 640px) {

  .btn-primary,
  .btn-secondary {
    padding: .72rem 1.5rem;
    font-size: .9rem;
  }

  .glass-card {
    border-radius: 14px;
  }

  .glass-card-strong {
    border-radius: 18px;
  }
}

/* ── BTS Purple glow util ────────────────────────────────────────────── */
.bts-glow {
  box-shadow: 0 0 30px rgba(202, 66, 255, 0.25), 0 0 80px rgba(119, 0, 119, 0.15);
}