/* ============================================================
   Connected 30 — components & layout
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 12px;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary {
  color: #fff;
  background: var(--grad-red);
  border: none;
  box-shadow: 0 8px 30px rgba(228, 18, 59, .4);
}
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--hairline-str);
  backdrop-filter: blur(8px);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost:hover   { transform: translateY(-2px); background: rgba(255, 255, 255, .12); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(90deg, var(--pink), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: rgba(244, 238, 240, .9); }
.nav-rsvp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--hairline-str);
  border-radius: 999px;
  padding: 9px 18px;
  color: rgba(244, 238, 240, .85);
}
.nav-rsvp:hover { border-color: var(--pink); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__glow--tr {
  top: -140px; right: -80px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(228, 18, 59, .32), transparent 66%);
  filter: blur(22px);
}
.hero__glow--bl {
  bottom: -120px; left: -100px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(90, 20, 60, .42), transparent 68%);
  filter: blur(24px);
}
#network { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; z-index: 1; }
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 52px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 24px 40px 64px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__poster {
  flex: 0 0 auto;
  width: 392px;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--hairline-str);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(228, 18, 59, .15);
}
.hero__content { flex: 1 1 360px; min-width: 300px; max-width: 460px; }
.hero__title { font-size: 66px; margin: 16px 0 4px; letter-spacing: -.03em; }
.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.05;
  margin-top: 6px;
}
.hero__subtitle .accent {
  background: var(--grad-red);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__meta {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-top: 16px;
}
.hero__lead { color: rgba(244, 238, 240, .7); margin: 22px 0 30px; }

/* ---------- Generic section ---------- */
.section { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 44px 28px; }
.section__title { font-size: 34px; margin-bottom: 6px; }
.section__sub { color: var(--text-muted); margin-bottom: 28px; }

/* ---------- Ambient page glows ---------- */
.page-glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(22px); }
.page-glow--a { top: 40%;  right: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(228, 18, 59, .18), transparent 68%); }
.page-glow--b { bottom: 6%; left: -160px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(90, 20, 60, .34), transparent 70%); }

/* ---------- User section (conditional in production) ---------- */
.user { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 56px 28px 8px; }
.user__card {
  position: relative;
  border: 1px solid rgba(228, 18, 59, .35);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(228, 18, 59, .12), rgba(255, 255, 255, .03));
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.user__card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 90, 122, .18), transparent 55%);
  pointer-events: none;
}
.user__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 30px 22px;
}
.tier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pink);
}
.tier .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.user__name { font-size: 30px; margin: 8px 0 2px; letter-spacing: -.01em; }
.user__id { font-family: var(--font-mono); font-size: 12px; color: rgba(244, 238, 240, .5); }
.user__balance { text-align: right; }
.user__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  background: linear-gradient(90deg, var(--pink), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.user__count small { font-size: 24px; color: var(--text-faint); -webkit-text-fill-color: var(--text-faint); }
.user__count-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.user__note { position: relative; padding: 0 30px 24px; font-size: 13px; color: var(--text-muted); }

.coupons {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 30px 24px;
}
.coupon {
  flex: 1 1 150px;
  min-width: 140px;
  position: relative;
  border-radius: 14px;
  padding: 16px;
  overflow: hidden;
}
.coupon__lead { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; }
.coupon__name { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin: 6px 0 2px; }
.coupon__code { font-family: var(--font-mono); font-size: 11px; }

.coupon--open {
  border: 1px solid rgba(228, 18, 59, .55);
  background: linear-gradient(160deg, rgba(228, 18, 59, .2), rgba(255, 90, 122, .06));
  box-shadow: inset 0 0 24px rgba(228, 18, 59, .25);
}
.coupon--open .coupon__lead { color: var(--pink); }
.coupon--open .coupon__code { color: var(--text-muted); }

.coupon--used {
  border: 1px dashed rgba(244, 238, 240, .16);
  background: rgba(255, 255, 255, .02);
}
.coupon--used .coupon__body { opacity: .42; }
.coupon--used .coupon__lead { color: rgba(244, 238, 240, .6); }
.coupon--used .coupon__name { text-decoration: line-through; }
.coupon--used .coupon__code { color: rgba(244, 238, 240, .5); }
.coupon__tick {
  position: absolute; top: 12px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(244, 238, 240, .3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: rgba(244, 238, 240, .5);
}

/* ---------- Countdown ---------- */
.countdown { text-align: center; }
.countdown__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--pink); margin-bottom: 22px; }
.cd-grid { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cd-cell {
  min-width: 110px;
  flex: 0 1 130px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--bg-elev);
  backdrop-filter: blur(10px);
  padding: 22px 8px;
}
.cd-cell--accent {
  border-color: rgba(228, 18, 59, .4);
  background: linear-gradient(160deg, rgba(228, 18, 59, .14), rgba(255, 255, 255, .02));
}
.cd-num { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -.02em; }
.cd-cell--accent .cd-num { color: var(--pink); }
.cd-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }

/* ---------- Event details ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.detail-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 26px 24px;
}
.detail-card__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--pink); }
.detail-card__value { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-top: 10px; }
.detail-card__sub { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.map {
  margin-top: 16px;
  position: relative;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 14px, rgba(255, 255, 255, .05) 14px 28px);
}
.map::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(228, 18, 59, .22), transparent 55%);
}
.map__pin {
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: var(--red);
  box-shadow: 0 0 20px rgba(228, 18, 59, .7);
}
.map__label { position: absolute; left: 0; bottom: 0; padding: 16px 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: rgba(244, 238, 240, .7); }

/* ---------- Lineup ---------- */
.lineup__list { display: flex; flex-direction: column; }
.lineup__row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 4px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.lineup__time { font-family: var(--font-mono); font-size: 17px; font-weight: 500; color: var(--pink); min-width: 64px; }
.lineup__act { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.lineup__note { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* ---------- RSVP ---------- */
.rsvp__card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(228, 18, 59, .1), rgba(255, 255, 255, .03));
  backdrop-filter: blur(14px);
  padding: 40px 36px;
}
.rsvp__card::before {
  content: "";
  position: absolute; top: -100px; right: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 18, 59, .3), transparent 65%);
  filter: blur(14px);
  pointer-events: none;
}
.rsvp__inner { position: relative; }
.rsvp__title { font-size: 34px; margin: 10px 0 26px; }
.rsvp__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 640px; }
.field {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 15px 16px;
  outline: none;
}
.field:focus { border-color: var(--pink); }
.field::placeholder { color: var(--text-faint); }
select.field option { background: #160a10; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 28px 40px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer__top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__tag { font-size: 14px; color: var(--text-muted); margin-top: 12px; max-width: 260px; }
.footer__cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__col-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.footer__links { font-size: 14px; color: rgba(244, 238, 240, .75); line-height: 2; }
.footer__legal { margin-top: 36px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: rgba(244, 238, 240, .32); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-header { padding: 20px 22px; }
  .hero__inner { padding: 16px 22px 48px; gap: 32px; }
  .hero__title { font-size: 48px; }
  .hero__subtitle { font-size: 30px; }
  .section, .user, .footer { padding-left: 22px; padding-right: 22px; }
  .section__title, .rsvp__title { font-size: 27px; }
  .cd-num { font-size: 42px; }
  .user__head { padding: 22px 22px 18px; }
  .coupons, .user__note { padding-left: 22px; padding-right: 22px; }
  .rsvp__card { padding: 30px 24px; }
}
