/* Backstage Mirante (static replica) */

:root{
  --bg: #f3f5f8;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, .08);
  --card: #ffffff;
  --shadow: 0 10px 28px rgba(15, 23, 42, .10);
  --shadow2: 0 14px 30px rgba(15, 23, 42, .12);
  --blue: #0ea5d6;
  --blue-d: #0b7aa0;
  --orange: #f97316;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max: 1120px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{ color: inherit; text-decoration: none; }

/* Top banner */
.topbar{ position: relative; height: 115px; overflow: hidden; }
.topbar__bg{
  position:absolute; inset: 0;
  background:
    radial-gradient(1000px 300px at 55% 10%, rgba(56, 189, 248, .35) 0%, rgba(2, 6, 23, 0) 55%),
    radial-gradient(900px 400px at 20% 0%, rgba(30, 64, 175, .45) 0%, rgba(2, 6, 23, 0) 60%),
    linear-gradient(180deg, #0b1220 0%, #0b1220 60%, rgba(11, 18, 32, .95) 100%);
}
.topbar__content{
  position: relative; height: 100%;
  display:flex; align-items:center; justify-content:center;
  padding: 0 1rem;
}
.brand{ text-align:center; color:#fff; letter-spacing: .2em; }
.brand__kicker{ font-size: 12px; opacity: .85; font-weight: 600; }
.brand__name{ font-size: 28px; font-weight: 700; letter-spacing: .25em; margin-top: 6px; }

/* Page */
.page{ width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: 22px 0 40px; }

/* Wizard card */
.wizard{
  width: min(520px, 100%);
  margin: -28px auto 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 20px 16px;
  text-align:center;
}
.wizard__title{ margin: 2px 0 14px; font-size: 22px; font-weight: 700; color: #0b84a9; }
.steps{ display:flex; justify-content:center; gap: 18px; padding-bottom: 2px; }
.step{
  width: 34px; height: 34px; border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 700; color: #0f172a; background: #eef2f6;
}
.step--active{ background: var(--blue); color: #fff; }

/* Grid */
.grid{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap: 22px;
  align-items:start;
}
.left{ min-width: 0; }
.right{ position: sticky; top: 18px; align-self:start; }

/* Headline */
.headline h1{
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}
.headline__meta{
  color: var(--muted);
  font-size: 13px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
}
.dot{ opacity:.55; }

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-top: 14px;
}

.success{
  display:flex;
  gap: 14px;
  align-items:center;
}
.success__icon{
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .14);
  color: #16a34a;
  display:flex; align-items:center; justify-content:center;
  font-weight: 900;
  font-size: 22px;
}
.success__title{ font-weight: 800; }
.success__desc{ color: var(--muted); margin-top: 2px; }

.block__title{ font-weight: 800; margin-bottom: 10px; }

.tickets{ display:flex; flex-direction:column; gap: 10px; }
.ticketrow{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items:center;
}
.ticketrow__name{ font-weight: 700; }
.ticketrow__meta{ grid-column: 1 / 2; color: var(--muted); font-size: 13px; }
.ticketrow__qty{ justify-self:end; color: var(--muted); font-size: 13px; }

.divider{ height: 1px; background: rgba(15,23,42,.08); margin: 6px 0; }

/* QR */
.qr{
  display:grid;
  grid-template-columns: 1fr 190px;
  gap: 16px;
  align-items:center;
}
.qr__label{ font-weight: 800; }
.qr__hint{ color: var(--muted); margin-top: 4px; font-size: 13px; }
.qr__small{ color: #94a3b8; margin-top: 6px; font-size: 12px; }
.qr__right{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 8px;
}
.qr__img{
  width: 160px;
  height: 160px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow2);
  background:#fff;
  padding: 8px;
}
.qr__data{
  color:#94a3b8;
  font-size: 10px;
  text-align:center;
  max-width: 190px;
  overflow-wrap:anywhere;
}

/* Actions */
.actions{
  display:flex;
  gap: 14px;
  justify-content:flex-start;
  margin-top: 16px;
}

/* Buttons */
.btn{
  min-width: 220px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .03em;
}
.btn--light{ background: #f1f5f9; color: #0f172a; }
.btn--primary{
  background: var(--blue);
  color: #fff;
  border-color: rgba(14, 165, 214, .35);
}
.btn:active{ transform: translateY(1px); }

/* Right: order card */
.order{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
}
.order__top{
  display:flex;
  gap: 12px;
  align-items:center;
}
.order__thumb{
  width: 54px; height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background:#fff;
}
.order__name{ font-weight: 800; }
.order__date{ color: var(--muted); font-size: 13px; margin-top: 2px; }

.order__lines{ margin-top: 12px; border-top: 1px solid rgba(15,23,42,.08); }
.line{
  display:flex;
  justify-content:space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15,23,42,.06);
  color: var(--muted);
  font-size: 13px;
}
.order__total{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  padding-top: 10px;
}
.total__label{ font-weight: 800; }
.total__value{ font-weight: 900; font-size: 16px; }

.details{
  width: 100%;
  margin-top: 10px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 700;
}
.chev{ font-size: 18px; margin-top: -2px; color: #0f172a; }

/* Mini help */
.minihelp{
  margin-top: 14px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.minihelp__title{ font-weight: 800; margin-bottom: 6px; }
.minihelp__text{ color: var(--muted); font-size: 13px; line-height: 1.45; }
.minihelp__cta{
  margin-top: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(14, 165, 214, .12);
  color: #0b7aa0;
  font-weight: 800;
  border: 1px solid rgba(14, 165, 214, .18);
}

/* Responsive */
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .right{ position: static; }
}
@media (max-width: 640px){
  .qr{ grid-template-columns: 1fr; }
  .actions{ flex-direction:column; }
  .btn{ width: 100%; min-width: 0; }
}
