/* EntryGo: risograph gig-poster tickets. Two inks (fluoro pink, deep blue) on warm paper. */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin-wght.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow SC";
  src: url("../fonts/barlow-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow SC";
  src: url("../fonts/barlow-sc-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Barlow SC";
  src: url("../fonts/barlow-sc-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow SC";
  src: url("../fonts/barlow-sc-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* paper */
  --paper: #F6F1EF;
  --paper-hi: #FBF8F7;
  --desk: #E4E2E3;
  /* blue ink */
  --blue: #1A43B4;
  --blue-deep: #16338F;
  --blue-soft: #4A5A9C;
  /* secondary text on paper/tint, 5.5:1 */
  --blue-line: rgba(26, 67, 180, .22);
  /* pink ink */
  --pink: #FF2FA2;
  /* fluoro: fills, rules, marks, display on art */
  --pink-ink: #C50F72;
  /* pink text that must be read */
  --pink-tint: #F8D5E4;
  /* cards, rows */
  --pink-tint-2: #F7CFDF;
  /* ticket stock */
  --pink-track: #F5BDDB;
  --pink-display: #D3127C;
  /* large pink type on tints and stock (3.6:1+) */
  --pink-note: #A30B5C;
  /* small pink text on tints (5.6:1) */
  /* verdicts */
  --go: #12844A;
  --go-flash: #1BA65C;
  --stop: #E0144C;
  --stop-tint: #FAD3E0;
  --go-ink: #0E6B3C;
  /* green text on paper (5.7:1) */
  --stop-ink: #B80F3E;
  /* red text on paper (5.7:1) */

  --r-row: 12px;
  --r-btn: 12px;
  --r-card: 4px;
  --gutter: clamp(16px, 5vw, 24px);
  --col: 460px;

  --f-display: "Oswald", "Arial Narrow", sans-serif;
  --f-ui: "Barlow SC", "Arial Narrow", system-ui, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper) url("../img/paper.png") 0 0 / 512px 512px;
  color: var(--blue);
  font: 500 17px/1.4 var(--f-ui);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--pink-track);
  color: var(--blue-deep);
}

input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pink-ink);
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

html {
  scrollbar-color: var(--blue) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 9px;
  border: 2px solid var(--paper);
}

::-webkit-scrollbar-track {
  background: transparent;
}

.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── ink textures ─────────────────────────────────────────────── */
.ink {
  -webkit-mask: url("../img/ink-text.png") 0 0 / 256px 256px;
  mask: url("../img/ink-text.png") 0 0 / 256px 256px;
}

.inked {
  -webkit-mask: url("../img/ink.png") 0 0 / 256px 256px;
  mask: url("../img/ink.png") 0 0 / 256px 256px;
}

.ink {
  padding-block: .12em .26em;
  margin-block: -.12em -.26em;
}

.grain {
  position: relative;
  isolation: isolate;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: url("../img/specks.png") 0 0 / 256px 256px;
  opacity: .35;
  z-index: 2;
}

/* ── frame ────────────────────────────────────────────────────── */
.app {
  width: min(100%, var(--col));
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
}

.app> :nth-last-child(2) {
  margin-bottom: 30px;
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 0 14px;
  min-height: 74px;
}

.logo {
  font: 700 clamp(34px, 10vw, 42px)/1 var(--f-display);
  letter-spacing: -.01em;
  color: var(--blue);
  text-decoration: none;
}

.logo:hover {
  color: var(--blue);
}

.mast-role {
  font: 600 13px/1 var(--f-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mast-role.quiet {
  letter-spacing: .02em;
  text-transform: none;
  font-size: 16px;
}

.mast-center {
  justify-content: center;
  position: relative;
}

.mast-center .logo {
  font-size: 30px;
}

.scallops {
  height: 16px;
  margin-top: auto;
  flex: none;
  background: radial-gradient(circle at 50% 100%, var(--pink) 0 8px, transparent 8.5px) 3px 0 / 24px 16px repeat-x;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-gap {
  margin-top: 30px;
}

h2.head,
.head {
  font: 700 26px/1.05 var(--f-display);
  text-transform: uppercase;
  letter-spacing: .005em;
  margin: 0;
  color: var(--blue);
}

.head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.sub {
  font: 500 15px/1.45 var(--f-ui);
  color: var(--blue-soft);
  margin: 0;
}

.fine {
  font: 500 14px/1.45 var(--f-ui);
  color: var(--blue-soft);
}

/* ── poster (event art + title) ───────────────────────────────── */
.poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  aspect-ratio: 1 / .98;
  background: var(--pink-tint) center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(14px, 4vw, 18px);
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0 0 35% 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(248, 236, 240, .55), rgba(248, 236, 240, 0));
}

.poster>* {
  position: relative;
  z-index: 3;
}

.poster-title {
  font: 700 clamp(46px, 15vw, 66px)/.9 var(--f-display);
  text-transform: uppercase;
  letter-spacing: -.005em;
  color: #F01E95;
  margin: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
  max-width: 11ch;
  text-shadow: .022em .018em 0 rgba(26, 67, 180, .22);
}

.poster-club {
  font: 600 clamp(19px, 6vw, 25px)/1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: .005em;
  color: var(--blue-deep);
  margin: 10px 0 0;
}

.poster-when {
  margin-top: auto;
  align-self: flex-start;
  font: 600 15px/1.25 var(--f-display);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 7px 10px 6px;
  border-radius: 3px;
}

/* ── rows, buttons ────────────────────────────────────────────── */
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--r-row);
  background: var(--pink-tint) url("../img/mottle-soft.png") 0 0 / 512px 512px;
  color: var(--blue);
  text-align: left;
  text-decoration: none;
  font: 500 18px/1.2 var(--f-display);
  letter-spacing: .01em;
  transition: background-color .18s var(--ease-out), transform .12s var(--ease-out);
}

button.row:hover,
a.row:hover,
label.row:hover {
  background-color: #F5C9DC;
  color: var(--blue);
}

button.row:active,
a.row:active,
label.row:active {
  transform: translateY(1px);
}

.row .grow {
  flex: 1;
  min-width: 0;
}

.row .grow small {
  display: block;
  font: 500 14px/1.3 var(--f-ui);
  color: var(--blue-soft);
  letter-spacing: 0;
  margin-top: 2px;
}

.row svg {
  flex: none;
}

.row .chev {
  width: 20px;
  height: 20px;
}

label.row {
  cursor: pointer;
}

label.row:focus-within {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font: 500 18px/1 var(--f-display);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out), transform .12s var(--ease-out);
}

.btn:hover {
  background: rgba(26, 67, 180, .08);
  color: var(--blue);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn.small {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 16px;
  border-width: 1.5px;
}

.btn.pinkline {
  border-color: var(--pink);
  color: var(--pink-ink);
}

.btn.danger {
  border-color: var(--stop-ink);
  color: var(--stop-ink);
}

.btn.danger:hover {
  background: rgba(224, 20, 76, .08);
  color: var(--stop-ink);
}

.btn-primary {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 82px;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--blue);
  color: #fff;
  text-align: left;
  text-decoration: none;
  font: 500 clamp(21px, 6.4vw, 25px)/1.1 var(--f-display);
  letter-spacing: .01em;
  transition: background-color .18s var(--ease-out), transform .12s var(--ease-out);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("../img/specks.png") 0 0 / 256px;
  opacity: .6;
  pointer-events: none;
  z-index: 1;
}

.btn-primary>* {
  position: relative;
  z-index: 2;
}

.btn-primary:hover {
  background: #1B3FA6;
  color: #fff;
}

.btn-primary:active {
  transform: translateY(1px) scale(.997);
}

.btn-primary[disabled] {
  background: #6C7DB8;
  cursor: progress;
}

.btn-primary .label {
  flex: 1;
  min-width: 0;
}

.btn-primary .label small {
  display: block;
  font: 500 14px/1.2 var(--f-ui);
  color: #D9DEF3;
  margin-top: 3px;
  letter-spacing: 0;
}

.btn-primary .arrow {
  width: 26px;
  height: 26px;
  flex: none;
  transition: transform .25s var(--ease-out);
}

.btn-primary:hover .arrow {
  transform: translateX(3px);
}

.btn-primary .tix {
  width: 46px;
  height: 32px;
  flex: none;
}

.btn-primary.compact {
  min-height: 60px;
  font-size: 21px;
  padding: 10px 18px;
}

.btn-primary.pink {
  background: var(--pink);
  color: #fff;
}

/* ── stat (checked in) ────────────────────────────────────────── */
.stat {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 18px 20px 20px;
  border-radius: var(--r-row);
  background: var(--pink-tint) url("../img/mottle-soft.png") 0 0 / 512px 512px;
}

.stat .dot {
  width: 50px;
  height: 50px;
  grid-row: span 2;
}

.stat-label {
  font: 500 19px/1.1 var(--f-display);
  margin: 0;
}

.stat-line {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.stat-num {
  font: 700 clamp(36px, 11vw, 44px)/1 var(--f-display);
  letter-spacing: -.01em;
  white-space: nowrap;
  margin: 2px 0 0;
}

.bar {
  flex: 1;
  min-width: 72px;
  height: 12px;
  border-radius: 12px;
  background: var(--pink-track);
  overflow: hidden;
}

.bar>i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--pink);
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  transition: transform .7s var(--ease-out);
}

.stat-note {
  grid-column: 2;
  font: 500 14px/1.3 var(--f-ui);
  color: var(--pink-note);
  margin: 6px 0 0;
}

/* ── forms ────────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field>span {
  font: 600 13px/1 var(--f-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid var(--blue-line);
  background: var(--paper-hi);
  color: var(--blue-deep);
  font: 500 19px/1.3 var(--f-ui);
  caret-color: var(--pink);
  transition: border-color .15s, background-color .15s;
}

.input::placeholder,
.textarea::placeholder {
  color: #5B67A0;
  opacity: 1;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  box-shadow: 0 0 0 3px var(--pink-track);
}

.textarea {
  min-height: 150px;
  resize: vertical;
  font: 500 15px/1.45 var(--f-ui);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231A43B4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.err {
  color: var(--stop-ink);
  font: 600 15px/1.35 var(--f-ui);
  margin: 0;
}

.ok-note {
  color: var(--go-ink);
  font: 600 15px/1.35 var(--f-ui);
  margin: 0;
}

.art-pick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.art-pick label {
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
}

.art-pick input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.art-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease-out);
}

.art-pick label::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 0 0 var(--pink);
  transition: box-shadow .2s var(--ease-out);
}

.art-pick input:checked+img {
  transform: scale(1.04);
}

.art-pick label:has(input:checked)::after {
  box-shadow: inset 0 0 0 5px var(--pink);
}

.art-pick label:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.art-pick .art-name {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 1;
  font: 600 12px/1 var(--f-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 4px 6px 3px;
  border-radius: 3px;
}

/* ── sign-in ──────────────────────────────────────────────────── */
.hero-poster {
  aspect-ratio: 1 / 1.04;
}

.hero-poster .poster-title {
  font-size: clamp(50px, 16.5vw, 74px);
  max-width: 9ch;
}

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 13px/1 var(--f-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 2px dotted var(--pink);
}

.google {
  width: 22px;
  height: 22px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font: 600 16px/1.3 var(--f-display);
  letter-spacing: .02em;
}

.links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.links a:hover {
  text-decoration: underline;
}

/* ── event list ───────────────────────────────────────────────── */
.stub {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: stretch;
  gap: 0;
  text-decoration: none;
  color: var(--blue);
  background: var(--pink-tint) url("../img/mottle-soft.png") 0 0 / 512px 512px;
  border-radius: var(--r-row);
  overflow: hidden;
  min-height: 104px;
  transition: transform .15s var(--ease-out), background-color .18s;
}

.stub:hover {
  background-color: #F5C9DC;
  color: var(--blue);
}

.stub:active {
  transform: translateY(1px);
}

.stub-art {
  background: center / cover no-repeat;
  border-right: 3px dotted var(--pink);
}

.stub-body {
  padding: 12px 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.stub-name {
  font: 700 22px/1 var(--f-display);
  text-transform: uppercase;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--pink-display);
}

.stub-meta {
  font: 500 15px/1.25 var(--f-ui);
  color: var(--blue);
}

.stub-count {
  padding: 12px 16px 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  font: 700 22px/1 var(--f-display);
  white-space: nowrap;
  color: var(--blue);
}

.stub-count small {
  font: 500 13px/1 var(--f-ui);
  color: var(--blue-soft);
}

.empty {
  text-align: center;
  padding: 48px 20px;
}

.empty h3 {
  font: 700 26px/1 var(--f-display);
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--blue);
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 16px/1 var(--f-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-decoration: none;
}

.backlink:hover {
  color: var(--pink-ink);
}

.backlink svg {
  width: 18px;
  height: 18px;
}

/* ── upload preview & pass list ───────────────────────────────── */
.upload-preview {
  background: var(--paper-hi);
  border: 2px solid var(--blue-line);
  border-radius: var(--r-row);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font: 500 15px/1.3 var(--f-ui);
}

.preview-table th {
  text-align: left;
  font: 600 12px/1 var(--f-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-soft);
  padding: 0 8px 8px 0;
}

.preview-table td {
  padding: 7px 8px 7px 0;
  border-top: 1.5px dotted var(--pink);
  overflow-wrap: anywhere;
  color: var(--blue-deep);
}

.gen-progress {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gen-count {
  font: 700 clamp(44px, 14vw, 58px)/1 var(--f-display);
  color: var(--blue);
  min-width: 3ch;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search {
  position: relative;
}

.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.search .input {
  padding-left: 44px;
}

.passlist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px dotted var(--pink);
}

.passlist li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px dotted var(--pink);
}

.pl-name {
  font: 600 19px/1.15 var(--f-display);
  margin: 0;
  overflow-wrap: anywhere;
}

.pl-meta {
  font: 500 14px/1.3 var(--f-ui);
  color: var(--blue-soft);
  grid-column: 1;
  overflow-wrap: anywhere;
  margin: 0;
}

.pl-meta .in {
  color: var(--go-ink);
  font-weight: 700;
}

.pl-actions {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: flex;
  gap: 6px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1.5px solid var(--blue-line);
  background: var(--paper-hi);
  color: var(--blue);
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}

.icon-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #fff;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.more-row {
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

.danger-zone {
  border-top: 2px dotted var(--pink);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ── the ticket (pass page) ───────────────────────────────────── */
.ticket-wrap {
  padding: 4px 0 0;
}

.ticket {
  position: relative;
  isolation: isolate;
  padding: 15px 7px 0;
}

.t-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.t-art {
  height: clamp(100px, 28vw, 128px);
  background: center 82% / cover no-repeat;
  margin: 0 1px;
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 31px) no-repeat, url("../img/torn.png") 0 100% / 512px 32px repeat-x;
  mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 31px) no-repeat, url("../img/torn.png") 0 100% / 512px 32px repeat-x;
}

.t-body {
  padding: 6px 20px 2px;
}

.t-name {
  font: 600 clamp(38px, 11.8vw, 52px)/1.04 var(--f-display);
  letter-spacing: -.012em;
  margin: 0;
  color: var(--blue);
  overflow-wrap: anywhere;
  text-shadow: .03em .024em 0 rgba(255, 47, 162, .3);
}

.t-rule {
  height: 3px;
  background: var(--pink);
  margin: 10px 0 12px;
  border-radius: 2px;
}

.t-event {
  font: 700 clamp(34px, 10.6vw, 46px)/.96 var(--f-display);
  text-transform: uppercase;
  color: var(--pink-display);
  margin: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: -.022em .02em 0 rgba(26, 67, 180, .2);
}

.t-when {
  font: 500 20px/1.2 var(--f-display);
  margin: 10px 0 0;
  color: var(--blue);
}

.t-where {
  font: 500 18px/1.2 var(--f-display);
  margin: 3px 0 0;
  color: var(--blue);
}

.t-qr {
  position: relative;
  display: grid;
  place-items: center;
  padding: 14px 0 16px;
}

.t-qr svg {
  width: min(54vw, 214px);
  height: auto;
  aspect-ratio: 1;
}

.t-tear {
  position: relative;
  height: 0;
  margin: 0 16px;
  border-top: 4px dotted var(--pink);
}

.t-stub {
  height: 60px;
  display: grid;
  place-items: center;
  padding-bottom: 8px;
  font: 500 clamp(22px, 7vw, 27px)/1 var(--f-display);
  color: var(--pink-display);
  letter-spacing: .005em;
}

.t-stub.ink {
  padding-block: .12em .26em;
  margin-block: 0;
}

.t-stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 6;
}

.t-stamp>div {
  rotate: -9deg;
  border: 4px solid var(--blue);
  outline: 1.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
  padding: 10px 18px 9px;
  background: rgba(247, 207, 223, .82);
  font: 700 27px/1.05 var(--f-display);
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
  letter-spacing: .05em;
  filter: url(#gp-rough);
}

.t-stamp small {
  display: block;
  font: 600 16px/1.2 var(--f-display);
  letter-spacing: .06em;
  margin-top: 3px;
}

.ticket.used .t-qr svg {
  opacity: .35;
}

.pass-notes {
  margin: 18px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.pass-notes p {
  margin: 0;
}

.pass-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

/* torn / missing ticket */
.torn {
  background: var(--pink-tint-2) url("../img/mottle.png") 0 0 / 512px 512px;
  border-radius: 4px;
  padding: 28px 24px 30px;
  position: relative;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 14px) no-repeat, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / 22px 14px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 14px) no-repeat, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / 22px 14px repeat-x;
}

.torn h1 {
  font: 700 40px/.98 var(--f-display);
  text-transform: uppercase;
  color: var(--pink-display);
  margin: 0 0 12px;
}

/* ── gate ─────────────────────────────────────────────────────── */
.code-input {
  font: 700 clamp(36px, 11vw, 46px)/1 var(--f-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 8px;
  min-height: 76px;
}

.code-input::placeholder {
  color: #7883B4;
  letter-spacing: .3em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--blue-line);
  font: 500 18px/1 var(--f-display);
  background: var(--paper-hi);
  transition: background-color .15s, color .15s, border-color .15s;
  cursor: pointer;
}

.chip input:checked+span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.chip input:focus-visible+span {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

.scan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 0 10px;
}

.scan-event {
  font: 700 19px/1.1 var(--f-display);
  text-transform: uppercase;
  color: var(--pink-ink);
  margin: 0;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}

.leave {
  border: 0;
  background: none;
  padding: 6px 2px;
  font: 600 14px/1 var(--f-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.leave:hover {
  color: var(--stop-ink);
}

.scan-gate {
  font: 600 14px/1 var(--f-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 6px 9px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.viewport {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #1B1830;
  aspect-ratio: 1 / 1.18;
  max-height: 58dvh;
  width: 100%;
}

.viewport video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brackets {
  position: absolute;
  inset: 10% 13% 18%;
  pointer-events: none;
}

.brackets i {
  position: absolute;
  width: 18%;
  height: 15%;
  border: 6px solid var(--pink);
}

.brackets i:nth-child(1) {
  left: 0;
  top: 0;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 10px;
}

.brackets i:nth-child(2) {
  right: 0;
  top: 0;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 10px;
}

.brackets i:nth-child(3) {
  left: 0;
  bottom: 0;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 10px;
}

.brackets i:nth-child(4) {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 10px;
}

.viewport.hunting .brackets {
  animation: breathe 2.4s var(--ease-out) infinite;
}

@keyframes breathe {

  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: .97;
  }
}

.cam-tools {
  position: absolute;
  left: 50%;
  bottom: 10px;
  translate: -50% 0;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.cam-tools .icon-btn {
  background: rgba(246, 241, 239, .92);
  border-color: transparent;
  cursor: pointer;
}

.cam-tools .icon-btn:focus-within {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

.cam-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: #F3EBEA;
  z-index: 2;
}

.cam-msg h3 {
  font: 700 28px/1 var(--f-display);
  text-transform: uppercase;
  margin: 0;
  color: #FF7DC3;
}

.cam-msg p {
  margin: 0;
  font: 500 16px/1.4 var(--f-ui);
  color: #E8E3EE;
}

.cam-msg .btn {
  border-color: #F3EBEA;
  color: #F3EBEA;
  justify-self: center;
}

.cam-msg .btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.verdict {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 14px 18px;
  border-radius: var(--r-row);
  position: relative;
  isolation: isolate;
  margin-top: 12px;
}

.verdict::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("../img/specks.png") 0 0 / 256px;
  opacity: .45;
  pointer-events: none;
  z-index: 1;
}

.verdict>* {
  position: relative;
  z-index: 2;
}

.verdict.ok {
  background: var(--go);
  color: #fff;
}

.verdict.dup {
  background: var(--stop);
  color: #fff;
}

.verdict.warn {
  background: var(--pink-tint);
  color: var(--blue-deep);
}

.verdict.idle {
  background: var(--pink-tint);
  color: var(--blue);
}

.v-ico {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
}

.v-ico svg {
  width: 36px;
  height: 36px;
}

.v-text {
  flex: 1;
  min-width: 0;
}

.v-main {
  font: 700 clamp(24px, 7.5vw, 32px)/1 var(--f-display);
  letter-spacing: -.01em;
  margin: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.v-sub {
  font: 500 14px/1.25 var(--f-ui);
  margin: 3px 0 0;
  opacity: .9;
}

.gatebox {
  background: var(--pink-tint) url("../img/mottle-soft.png") 0 0 / 512px 512px;
  border-radius: var(--r-row);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kicker-free {
  font: 600 13px/1 var(--f-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin: 0;
}

.gate-code {
  font: 700 32px/1 var(--f-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 4px 0 0;
  color: var(--pink-display);
}

.gatebox .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.gate-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px dotted var(--pink);
  text-align: center;
}

.gate-qr svg {
  width: 170px;
  height: 170px;
}

.gate-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--pink-tint) url("../img/mottle-soft.png") 0 0 / 512px 512px;
  border-radius: var(--r-row);
  margin-top: 12px;
}

.counter .c-label {
  font: 500 16px/1 var(--f-display);
  white-space: nowrap;
}

.counter .c-num {
  font: 700 30px/1 var(--f-display);
  white-space: nowrap;
}

.recent {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 2px dotted var(--pink);
  font: 500 16px/1.2 var(--f-ui);
}

.recent li .r-name {
  flex: 1;
  min-width: 0;
  font: 600 17px/1.15 var(--f-display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent li .r-at {
  color: var(--blue-soft);
  white-space: nowrap;
  font-size: 14px;
}

.recent li svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.recent .r-ok {
  color: var(--go-ink);
}

.recent .r-dup {
  color: var(--stop-ink);
}

.sheet-bg {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(22, 51, 143, .38);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet {
  width: min(100%, var(--col));
  max-height: 86dvh;
  overflow: auto;
  background: var(--paper) url("../img/paper.png") 0 0 / 512px;
  border-radius: 16px 16px 0 0;
  padding: 18px var(--gutter) max(22px, env(safe-area-inset-bottom));
  animation: up .32s var(--ease-out);
}

@keyframes up {
  from {
    transform: translateY(40px);
    opacity: .4;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  translate: -50% 0;
  z-index: 60;
  background: var(--blue);
  color: #fff;
  font: 500 17px/1.2 var(--f-display);
  padding: 12px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  animation: toast .3s var(--ease-out);
}

.toast svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--pink-track);
}

@keyframes toast {
  from {
    transform: translateY(14px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  margin-top: 30px;
  font: 500 14px/1.4 var(--f-ui);
  color: var(--blue-soft);
}

.foot a {
  color: var(--blue-soft);
}

.foot a:hover {
  color: var(--pink-ink);
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid currentColor;
  border-right-color: transparent;
  animation: spin .7s linear infinite;
  flex: none;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--pink-tint) 0 40%, #FBE3EE 50%, var(--pink-tint) 60% 100%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--r-row);
}

@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}

/* ── wide screens ─────────────────────────────────────────────── */
@media (min-width: 980px) {
  body.wide .app {
    width: min(100%, 1060px);
  }

  .dash {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 36px;
    align-items: start;
  }

  .dash>.left {
    position: sticky;
    top: 16px;
  }
}

@media (min-width: 560px) {
  .ticket-wrap {
    padding-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.section-gap-m {
  margin-top: 18px;
}

@media (min-width: 980px) {
  .section-gap-m {
    margin-top: 0;
  }
}

.narrow {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

@media (min-width: 980px) {
  .signin {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 20px 64px;
    align-items: center;
    padding-top: 12px;
  }
}

.row .grow .fname {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mast-role .icon-btn {
  border-color: transparent;
  background: transparent;
}

.mast-role .icon-btn:hover {
  background: var(--pink-tint);
}

.head.section-gap {
  margin-top: 28px;
  margin-bottom: 4px;
}

.verdict.dup .v-main {
  font-size: clamp(22px, 6.6vw, 27px);
  text-wrap: balance;
}

.verdict.dup .v-sub {
  color: #8E0C34;
}

.v-main {
  text-wrap: balance;
}

.poster-title.ink,
.t-name.ink,
.t-event.ink,
.stub-name.ink {
  margin-top: -.12em;
  margin-bottom: -.26em;
}

.stat-num.ink {
  margin-top: calc(2px - .12em);
  margin-bottom: -.26em;
}

.gate-code.ink {
  margin-top: calc(8px - .12em);
  margin-bottom: calc(4px - .26em);
}

.logo.ink {
  display: inline-block;
  margin-block: -.12em -.26em;
}

.gdisc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

.gdisc .google {
  width: 22px;
  height: 22px;
}

/* ═══════════════════════════════════════════════════════════════
   CYBER GLASS DESIGN SYSTEM (UNIFIED FOR ALL PAGES)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper: #090D16;
  --paper-hi: #121826;
  --desk: #06090F;

  --blue: #38BDF8;
  --blue-deep: #0284C7;
  --blue-soft: #94A3B8;
  --blue-line: rgba(56, 189, 248, 0.2);

  --pink: #818CF8;
  --pink-ink: #A5B4FC;
  --pink-tint: rgba(30, 41, 59, 0.7);
  --pink-tint-2: #1E293B;
  --pink-track: rgba(99, 102, 241, 0.3);
  --pink-display: #C7D2FE;
  --pink-note: #E0E7FF;

  --go: #10B981;
  --go-flash: #34D399;
  --stop: #F43F5E;
  --stop-tint: rgba(244, 63, 94, 0.15);
  --go-ink: #6EE7B7;
  --stop-ink: #FDA4AF;

  --r-row: 16px;
  --r-btn: 14px;
  --r-card: 20px;
  --gutter: clamp(16px, 5vw, 24px);
  --col: 480px;

  --f-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.12), transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(129, 140, 248, 0.1), transparent 50%),
              #090D16 !important;
  color: #F8FAFC !important;
  font: 500 16px/1.5 var(--f-ui);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Glass cards, plates, and containers */
.app {
  width: min(100%, var(--col));
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--gutter) var(--gutter) 32px;
  position: relative;
  z-index: 1;
}

body.wide .app {
  width: min(100%, 1080px);
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.mast-center {
  justify-content: center;
}

.logo {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 50%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.mast-role {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* Remove vintage ink texture masks in modern cyber mode */
.ink, .inked {
  -webkit-mask: none !important;
  mask: none !important;
  padding-block: 0 !important;
  margin-block: 0 !important;
}

.scallops {
  display: none !important;
}

/* Posters and Showcase */
.poster {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  padding: 24px;
  color: #fff;
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.2) 0%, rgba(9, 13, 22, 0.88) 100%);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.poster-title, .poster-club, .poster-when {
  position: relative;
  z-index: 2;
}

.poster-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 6px 0;
}

.poster-club {
  font-size: 16px;
  color: #94A3B8;
  margin: 0;
}

.poster-when {
  display: inline-block;
  margin-top: 14px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Form controls & inputs */
.input, .field input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #F8FAFC !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  transition: all 0.2s ease;
}

.input:focus, .field input:focus {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
  outline: none !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.field span {
  color: #94A3B8;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #4F46E5 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: var(--r-btn) !important;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4) !important;
  font-family: var(--f-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  transition: all 0.2s var(--ease-out) !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(79, 70, 229, 0.5) !important;
}

.btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F8FAFC;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.row {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F8FAFC !important;
  border-radius: var(--r-row) !important;
  transition: all 0.2s ease;
}

.row:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.or {
  color: #64748B;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px 0;
}

.or::before, .or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
}

.sub {
  color: #94A3B8 !important;
}

.fine {
  color: #64748B !important;
}

.links a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #38BDF8;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.links a:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #7DD3FC;
  transform: translateY(-1px);
}

/* ── ATTENDEE TICKET PASS (p/index.html) ────────────────── */
.ticket {
  background: rgba(18, 24, 38, 0.85) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(56, 189, 248, 0.15) !important;
  color: #F8FAFC !important;
  overflow: hidden;
}

.ticket-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.t-name {
  color: #FFFFFF !important;
  font-family: var(--f-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.t-event {
  color: #38BDF8 !important;
  font-family: var(--f-display) !important;
  font-weight: 700 !important;
}

.qr-box {
  background: #ffffff !important;
  padding: 16px !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  display: inline-block !important;
}

.tear {
  border-top: 2px dashed rgba(255, 255, 255, 0.18) !important;
}

.tear-stub {
  background: rgba(15, 20, 32, 0.6) !important;
}

/* ── GATE SCANNER (gate/index.html) ─────────────────────── */
.cam-wrap {
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.15) !important;
  background: #000 !important;
}

.bracket {
  border-color: #38BDF8 !important;
}

.code-input {
  font-family: monospace !important;
  font-size: 24px !important;
  letter-spacing: 0.25em !important;
  text-align: center !important;
}

.chips .chip input:checked + span {
  background: #0284C7 !important;
  color: #fff !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.chips .chip span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94A3B8;
  border-radius: 10px;
}

.verdict.go {
  background: linear-gradient(135deg, #065F46 0%, #047857 100%) !important;
  border: 1px solid #34D399 !important;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.4) !important;
}

.verdict.dup, .verdict.stop {
  background: linear-gradient(135deg, #881337 0%, #BE123C 100%) !important;
  border: 1px solid #FB7185 !important;
  box-shadow: 0 0 40px rgba(244, 63, 94, 0.4) !important;
}

.card-stat {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
}

.bar {
  background: rgba(255, 255, 255, 0.1) !important;
}

.bar-fill {
  background: linear-gradient(90deg, #38BDF8, #818CF8) !important;
}

.foot {
  color: #64748B;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 13px;
  text-align: center;
}

.foot a {
  color: #94A3B8;
}

.foot a:hover {
  color: #38BDF8;
}

/* ── MODERN CYBER TICKET SINGLE-PAGE COMPACT DESIGN ── */
body:has(.ticket-wrap) {
  overflow-y: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body:has(.ticket-wrap) .app {
  padding-block: 8px 12px !important;
  max-height: 98vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body:has(.ticket-wrap) .mast {
  margin-bottom: 8px !important;
}

.ticket-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 0 !important;
}

.ticket {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 30, 49, 0.95) 0%, rgba(13, 18, 30, 0.98) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.15) !important;
  overflow: hidden;
  padding: 0 !important;
}

.ticket .t-shape {
  display: none !important;
}

.ticket .t-art {
  height: 90px !important;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.ticket .t-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 18, 30, 0.9) 100%);
}

.ticket .t-body {
  padding: 8px 16px 4px !important;
  text-align: center;
}

.ticket .t-name {
  font-size: 24px !important;
  line-height: 1.1 !important;
  margin: 0 0 4px !important;
  color: #FFFFFF !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  font-weight: 700 !important;
}

.ticket .t-rule {
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent) !important;
  margin: 6px auto !important;
  width: 75% !important;
}

.ticket .t-event {
  font-size: 16px !important;
  color: #38BDF8 !important;
  margin: 2px 0 !important;
  font-weight: 600 !important;
}

.ticket .t-when, .ticket .t-where {
  font-size: 12px !important;
  color: #94A3B8 !important;
  margin: 1px 0 !important;
}

/* High Contrast QR Container */
.ticket .t-qr {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 10px !important;
  margin: 6px auto !important;
}

.ticket .t-qr svg {
  background: #FFFFFF !important;
  padding: 10px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(56, 189, 248, 0.4) !important;
  width: min(44vw, 175px) !important;
  height: auto !important;
}

.ticket .t-tear {
  position: relative;
  border-top: 2px dashed rgba(255, 255, 255, 0.15) !important;
  margin: 4px 12px !important;
  height: 0 !important;
}

.ticket .t-tear::before,
.ticket .t-tear::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  background: var(--bg, #090D16);
  border-radius: 50%;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.8);
}
.ticket .t-tear::before { left: -20px; }
.ticket .t-tear::after { right: -20px; }

.ticket .t-stub {
  height: 40px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  color: #38BDF8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.25);
}

.pass-notes {
  margin: 8px auto 4px !important;
  max-width: 360px;
  text-align: center;
}

.pass-notes .fine {
  font-size: 11px !important;
  line-height: 1.3 !important;
  color: #64748B !important;
  margin: 0 !important;
}

.pass-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px !important;
}

.pass-actions .btn {
  padding: 6px 14px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #E2E8F0 !important;
}

/* ── QR COMING SOON & LOCK STYLING ── */
.qr-countdown-box {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 6px;
  width: 100%;
  max-width: 250px;
}

.countdown-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-family: monospace;
  font-weight: 700;
  color: #38BDF8;
}

.countdown-timer {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.btn-download-pass {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(99, 102, 241, 0.25) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #38BDF8 !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.btn-download-pass:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35) 0%, rgba(99, 102, 241, 0.4) 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.auto-timer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.auto-timer-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #CBD5E1;
  font-weight: 600;
}

.select-auto-timer {
  background: rgba(10, 15, 29, 0.9) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 8px !important;
  color: #38BDF8 !important;
  font-size: 12px !important;
  padding: 4px 10px !important;
  cursor: pointer;
  outline: none;
}

/* Cam Tools Active / Muted states */
.cam-tools .tool-active {
  color: #38BDF8 !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

.cam-tools .tool-muted {
  color: #64748B !important;
  opacity: 0.65;
}

.qr-locked-box {
  padding: 12px 14px !important;
  width: 100%;
  box-sizing: border-box;
}

.qr-placeholder-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(8, 12, 24, 0.95) 100%);
  border: 1.5px dashed rgba(56, 189, 248, 0.45);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(56, 189, 248, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lock-shield-icon {
  width: 44px;
  height: 44px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  margin-bottom: 2px;
  animation: lockFloat 3s ease-in-out infinite;
}

.lock-shield-icon svg {
  width: 22px;
  height: 22px;
}

@keyframes lockFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.qr-coming-soon-badge {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  margin: 0;
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qr-coming-soon-desc {
  font-size: 12px;
  line-height: 1.4;
  color: #94A3B8;
  margin: 0;
  max-width: 270px;
}

.qr-unlock-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  color: #38BDF8;
  margin-top: 4px;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  background: #38BDF8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38BDF8;
  animation: pulseDot 1.8s infinite;
}

.ticket-locked {
  border-color: rgba(99, 102, 241, 0.35) !important;
}

.badge-locked {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #A5B4FC !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

/* Organiser QR Toggle styling */
.gate-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.qr-release-toggle-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 12px;
}

.qr-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #CBD5E1;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator-dot.active-green {
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.status-indicator-dot.locked-amber {
  background: #F59E0B;
  box-shadow: 0 0 8px #F59E0B;
}

.btn-glow-cyan {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #fff !important;
  border: 1px solid #38BDF8 !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3) !important;
  font-weight: 700 !important;
}

.btn-warn {
  background: rgba(244, 63, 94, 0.15) !important;
  color: #FDA4AF !important;
  border: 1px solid rgba(244, 63, 94, 0.4) !important;
}

/* ── CREATIVE VISUAL ENHANCEMENTS FOR TICKET PASS ── */
.ticket {
  perspective: 1000px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  animation: ticketEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes ticketEntrance {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Holographic animated top shimmer line */
.ticket::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38BDF8, #818CF8, #F43F5E, #38BDF8);
  background-size: 300% 100%;
  animation: holoGlow 4s linear infinite;
  z-index: 10;
}

@keyframes holoGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Cyber holographic watermark pill */
.ticket-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38BDF8;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.ticket-badge .dot {
  width: 6px;
  height: 6px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34D399;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Laser scanline sweep on the QR code */
.ticket .t-qr {
  position: relative;
  overflow: hidden;
}

.ticket .t-qr::after {
  content: "";
  position: absolute;
  width: min(44vw, 175px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.95), transparent);
  box-shadow: 0 0 12px #38BDF8, 0 0 4px #fff;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  animation: laserScan 2.6s ease-in-out infinite;
  pointer-events: none;
  border-radius: 2px;
}

@keyframes laserScan {
  0% {
    top: 15px;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 15px);
    opacity: 0;
  }
}

/* 3D tilt interaction for interactive feel */
@media (hover: hover) {
  .ticket:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.3) !important;
  }
}

/* ── CREATIVE CYBER HUD FOR GATE SCANNER (gate/index.html) ── */
.viewport {
  position: relative !important;
  border-radius: 24px !important;
  border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.2) !important;
  background: #060913 !important;
  overflow: hidden !important;
}

/* Radar Target Reticle in Center */
.viewport::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  animation: radarRotate 12s linear infinite;
}

@keyframes radarRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Center Crosshair Aim Pip */
.viewport::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: #38BDF8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38BDF8, 0 0 4px #fff;
  pointer-events: none;
  z-index: 5;
  animation: pulseAim 2s infinite ease-in-out;
}

@keyframes pulseAim {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(0.65); opacity: 0.4; }
}

/* HUD Laser Sweeper Beam */
.viewport .brackets::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38BDF8 25%, #FFFFFF 50%, #38BDF8 75%, transparent);
  box-shadow: 0 0 14px #38BDF8, 0 0 4px #fff;
  animation: laserSweep 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 6;
}

@keyframes laserSweep {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Neon Corner Brackets */
.brackets i {
  border-color: #38BDF8 !important;
  border-width: 4px !important;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

/* Gate HUD Header */
.scan-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 16px !important;
  background: rgba(18, 24, 38, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  margin-bottom: 12px !important;
}

.scan-event {
  font-family: var(--f-display) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #F8FAFC !important;
  letter-spacing: -0.01em !important;
}

.scan-gate {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  font-family: monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2) !important;
}

.leave {
  background: rgba(244, 63, 94, 0.12) !important;
  border: 1px solid rgba(244, 63, 94, 0.3) !important;
  color: #FB7185 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 4px 12px !important;
}

/* Verdict Banners */
.verdict {
  border-radius: 18px !important;
  padding: 14px 18px !important;
  margin-top: 14px !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid transparent !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.verdict.idle {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #94A3B8 !important;
}

.verdict.ok {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.9) 0%, rgba(4, 120, 87, 0.95) 100%) !important;
  border-color: #34D399 !important;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.45) !important;
  color: #FFFFFF !important;
}

.verdict.dup, .verdict.warn {
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.9) 0%, rgba(190, 18, 60, 0.95) 100%) !important;
  border-color: #FB7185 !important;
  box-shadow: 0 0 35px rgba(244, 63, 94, 0.45) !important;
  color: #FFFFFF !important;
}

/* Check-in Counter progress bar */
.counter {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 12px 18px !important;
  margin-top: 14px !important;
}

.counter .c-num {
  font-family: var(--f-display) !important;
  color: #38BDF8 !important;
  font-weight: 700 !important;
  font-size: 20px !important;
}

.counter .bar {
  background: rgba(255, 255, 255, 0.08) !important;
  height: 8px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.counter .bar i {
  background: linear-gradient(90deg, #38BDF8, #818CF8, #10B981) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6) !important;
}

/* Floating HUD Live Indicator Tag */
.hud-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 9, 19, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-family: monospace;
  letter-spacing: 0.1em;
  color: #38BDF8;
  font-weight: 700;
  z-index: 10;
}

.hud-tag .live-dot {
  width: 6px;
  height: 6px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34D399;
  animation: pulseLiveDot 1.8s infinite ease-in-out;
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

/* ── PASSES FILTER & PAGINATION CONTROLS ── */
.pass-filters-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 6px;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pills, .page-size-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px;
  border-radius: 10px;
}

.pill-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pill-btn:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.05);
}

.pill-btn.active {
  background: rgba(56, 189, 248, 0.18);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.pill-btn.pill-in.active {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.pill-btn.pill-out.active {
  background: rgba(244, 63, 94, 0.18);
  color: #FB7185;
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.2);
}

.pill-badge {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 10px;
  color: inherit;
}

/* ── CREATIVE EVENT FORM & LIVE PREVIEW (/#/new) ── */
.form-layout-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

@media (min-width: 860px) {
  .form-layout-wrap {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.event-live-card {
  position: sticky;
  top: 24px;
  background: linear-gradient(180deg, rgba(22, 30, 49, 0.95) 0%, rgba(13, 18, 30, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
}

.live-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-family: monospace;
  color: #38BDF8;
  font-weight: 700;
  z-index: 5;
}

.live-card-art {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.live-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(13, 18, 30, 0.95) 100%);
}

.live-card-body {
  padding: 16px 20px 20px;
}

.live-card-name {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.live-card-club {
  font-size: 14px;
  color: #38BDF8;
  font-weight: 600;
  margin-bottom: 12px;
}

.live-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Quick Presets Pills */
.presets-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38BDF8;
}

/* Art Picker Upgrade */
.art-pick label {
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 2px solid transparent !important;
  transition: all 0.25s ease !important;
}

.art-pick input:checked + img {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
  transform: scale(1.03);
}

.art-pick label:hover {
  border-color: rgba(56, 189, 248, 0.4) !important;
}

/* ── EMAIL MODAL & PREVIEW DIALOG ── */
.mail-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mail-modal-card {
  background: #0B1120;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.15);
}

.mail-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
}

.mail-modal-title {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mail-preview-container {
  padding: 20px;
  overflow-y: auto;
  background: #080D1A;
}

/* Simulated Email Client View */
.mail-email-client-box {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.mail-client-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mail-client-subject {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.mail-client-meta {
  font-size: 13px;
  color: #94A3B8;
}

/* Beautiful HTML Email Card */
.mail-ticket-banner {
  background: linear-gradient(135deg, #0284C7 0%, #4F46E5 100%);
  border-radius: 12px;
  padding: 20px;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-align: center;
}

.mail-ticket-banner h2 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mail-details-grid {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.mail-grid-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}
.mail-grid-row:last-child { border-bottom: none; }
.mail-grid-label { color: #94A3B8; }
.mail-grid-val { color: #F8FAFC; font-weight: 600; text-align: right; }

.mail-cta-button {
  display: block;
  background: linear-gradient(90deg, #38BDF8, #818CF8);
  color: #070B16 !important;
  text-align: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
  margin: 20px 0;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.mail-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* ── ADVANCED ENHANCEMENTS FOR 4 CORE MODULES ── */

/* 1. Live Preview Card Interactive 3D Glow */
.event-live-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
}

.event-live-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.35);
}

.live-card-badge {
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* 2. Email Modal Tab Switcher & Mobile Responsiveness */
.mail-modal-card {
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.95), 0 0 45px rgba(56, 189, 248, 0.25) !important;
}

.mail-cta-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mail-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.7);
}

/* 3. Smooth fade transition for pass lists */
.passlist li {
  transition: background 0.25s ease, border-color 0.25s ease;
}

.passlist li:hover {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

/* 4. Live Sync Toast Indicator */
.sync-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34D399;
  animation: pulseDot 1.5s infinite;
}

/* ── GATE ANALYTICS & PEAK RUSH LIVE CHARTS ── */
.analytics-section {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 20px;
  margin: 16px 0;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

.analytics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.analytics-title {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

.stat-kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.kpi-label {
  font-size: 11px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.kpi-value {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  color: #38BDF8;
}

/* Peak Rush Velocity Bar Chart */
.velocity-chart-wrap {
  margin-top: 14px;
}

.chart-bars-row {
  display: flex;
  align-items: flex-end;
  height: 90px;
  gap: 8px;
  padding: 8px 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-fill {
  width: 100%;
  max-width: 28px;
  background: linear-gradient(180deg, #38BDF8 0%, rgba(56, 189, 248, 0.25) 100%);
  border-radius: 6px 6px 0 0;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 4px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.chart-bar-label {
  font-size: 10px;
  color: #64748B;
  margin-top: 6px;
  font-family: monospace;
}

/* Gate Comparison Split */
.gate-bars-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.gate-split-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.gate-split-name {
  width: 65px;
  color: #94A3B8;
  font-weight: 600;
}

.gate-split-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.gate-split-bar {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #38BDF8, #818CF8);
  transition: width 0.4s ease;
}

.gate-split-count {
  width: 45px;
  text-align: right;
  color: #F8FAFC;
  font-weight: 700;
  font-family: monospace;
}

/* ── BRAND SUB-LINE STYLES (HEADER & FOOTER) ── */
.brand-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-by {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #38BDF8;
  margin-top: 2px;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.brand-by:hover {
  opacity: 1;
  text-decoration: underline;
}

.foot {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.foot-title {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.foot-by {
  font-size: 12px;
  color: #94A3B8;
}

.foot-by a {
  color: #38BDF8;
  text-decoration: none;
  font-weight: 600;
}

.foot-by a:hover {
  text-decoration: underline;
}

/* ── HOME PAGE COMPACT SINGLE-PAGE VIEW (NO SCROLL) ── */
body:has(.signin) {
  overflow-y: hidden !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

body:has(.signin) .app {
  padding-block: 10px 14px !important;
  max-height: 98vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

body:has(.signin) .mast {
  margin-bottom: 6px !important;
}

body:has(.signin) .signin {
  margin: auto 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  align-items: center !important;
  max-width: 920px !important;
  margin-inline: auto !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  body:has(.signin) .signin {
    grid-template-columns: 1fr 1fr !important;
    gap: 36px !important;
  }
}

body:has(.signin) .hero-poster {
  aspect-ratio: 16 / 11 !important;
  max-height: 320px !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.2) !important;
}

body:has(.signin) .poster-title {
  font-size: clamp(32px, 5vw, 48px) !important;
  line-height: 1.05 !important;
}

body:has(.signin) .poster-club {
  font-size: 16px !important;
  margin-top: 4px !important;
}

body:has(.signin) .sub {
  font-size: 15px !important;
  line-height: 1.45 !important;
  color: #94A3B8 !important;
}

body:has(.signin) #google {
  min-height: 54px !important;
  font-size: 15px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2) !important;
}

body:has(.signin) .links {
  margin-top: 6px !important;
  display: flex !important;
  gap: 14px !important;
}

body:has(.signin) .links a {
  font-size: 13px !important;
}

body:has(.signin) .foot {
  padding: 10px 0 !important;
  margin-top: auto !important;
}

/* ── NEXT-LEVEL CREATIVE HERO UI/UX FOR HOME PAGE ── */
.home-creative-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  max-width: 1060px;
  margin: auto;
  width: 100%;
}

@media (min-width: 860px) {
  .home-creative-hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .home-creative-hero {
    gap: 16px;
  }
  .hero-glass-card {
    border-radius: 18px !important;
  }
  .hero-poster-art {
    height: 160px !important;
  }
  .hero-card-content {
    padding: 16px 18px 18px !important;
  }
  .hero-auth-console {
    padding: 20px 18px !important;
    border-radius: 18px !important;
  }
}

/* 3D Holographic Poster Presentation */
.hero-glass-card {
  position: relative;
  background: linear-gradient(135deg, rgba(22, 30, 49, 0.9) 0%, rgba(10, 15, 29, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-glass-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.95), 0 0 50px rgba(56, 189, 248, 0.35);
}

.hero-poster-art {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-poster-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(10, 15, 29, 0.95) 100%);
}

.hero-live-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-family: monospace;
  color: #38BDF8;
  font-weight: 700;
  z-index: 5;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.hero-live-pill .dot {
  width: 6px;
  height: 6px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34D399;
  animation: pulseDot 1.8s infinite;
}

.hero-card-content {
  padding: 20px 24px 24px;
}

.hero-headline {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.hero-headline span {
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 14px;
  color: #38BDF8;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Feature 3-Pill Highlights */
.hero-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.feature-pill strong {
  color: #38BDF8;
}

/* Right Interactive Auth Console */
.hero-auth-console {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-header-title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0;
}

.auth-header-sub {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.5;
  margin: 4px 0 0;
}

.google-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.google-auth-btn:hover {
  transform: translateY(-2px);
  border-color: #38BDF8;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.4);
}

.quick-gate-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.quick-link-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.quick-link-box:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  transform: translateY(-1px);
}

/* ── RESPONSIVE & SCROLL-FRIENDLY HOME EXPERIENCE ── */
body:has(.home-creative-hero) {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 100dvh !important;
  height: auto !important;
  width: 100% !important;
  position: static !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 45%),
              #070B16 !important;
}

body:has(.home-creative-hero) .app {
  padding: clamp(12px, 3vw, 24px) clamp(16px, 4vw, 32px) !important;
  min-height: 100dvh !important;
  height: auto !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: visible !important;
  width: min(100%, 1120px) !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

body:has(.home-creative-hero) .mast {
  margin-bottom: 16px !important;
  z-index: 10;
}

body:has(.home-creative-hero) #view {
  flex: 1 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  margin: 12px 0 24px !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Ambient Neon Glow Behind Hero Card */
.hero-glass-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Neon animated border shimmer on Hero Card */
.hero-glass-card {
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.25) !important;
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Shimmer scanline over Hero Poster */
.hero-poster-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.15) 50%, transparent 100%);
  animation: heroScan 4s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes heroScan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Auth Console Glowing Halo */
.hero-auth-console {
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(8, 12, 24, 0.95) 100%) !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.15) !important;
  animation: heroEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Google OAuth Pulse on Hover */
.google-auth-btn {
  position: relative;
  overflow: hidden;
}

.google-auth-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: 0.5s;
}

.google-auth-btn:hover::after {
  left: 100%;
}

/* Volunteer Portal Capsule upgrade */
.quick-link-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.quick-link-box:hover {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3) !important;
  transform: translateY(-2px) !important;
}

body:has(.home-creative-hero) .foot {
  padding: 8px 0 !important;
  margin-top: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ── GATE SCANNER RESPONSIVE & HIGH-PERFORMANCE HUD DESIGN ── */
body:has(#scan:not([hidden])),
body:has(#join:not([hidden])) {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 100dvh !important;
  height: auto !important;
  width: 100% !important;
  position: static !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background: radial-gradient(circle at 50% 15%, rgba(56, 189, 248, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
              #060913 !important;
}

body:has(#scan:not([hidden])) .app,
body:has(#join:not([hidden])) .app {
  padding: clamp(10px, 2.5vw, 20px) clamp(14px, 3.5vw, 24px) !important;
  min-height: 100dvh !important;
  height: auto !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: visible !important;
  max-width: 580px !important;
  margin: 0 auto !important;
}

body:has(#scan:not([hidden])) .mast,
body:has(#join:not([hidden])) .mast {
  margin-bottom: 12px !important;
  z-index: 10;
}

/* 1. Join Section Cyber Console */
#join {
  margin: auto 0 !important;
  max-width: 480px !important;
  width: 100% !important;
  align-self: center !important;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(8, 12, 24, 0.95) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 24px !important;
  padding: clamp(20px, 5vw, 32px) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.18) !important;
  animation: heroEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.gate-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #38BDF8;
  margin-bottom: 14px;
}

.gate-hero-badge .pulse-dot {
  width: 6px;
  height: 6px;
  background: #38BDF8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38BDF8;
  animation: pulseDot 1.8s infinite;
}

.gate-title-wrap .head {
  font-size: clamp(24px, 4.5vw, 32px);
  margin: 0 0 6px;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.gate-title-wrap .sub {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0 0 20px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #CBD5E1;
  margin-bottom: 6px;
}

.code-input-wrapper {
  position: relative;
}

.code-input {
  font-family: monospace !important;
  font-size: clamp(22px, 6vw, 28px) !important;
  letter-spacing: 0.25em !important;
  text-align: center !important;
  background: rgba(10, 15, 29, 0.8) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 14px !important;
  color: #38BDF8 !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.1) !important;
  transition: all 0.2s ease !important;
}

.code-input:focus {
  border-color: #38BDF8 !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.3) !important;
}

.join-portal-footer {
  margin-top: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

/* 2. Scanner Viewport Strict Compact Fit */
#scan {
  flex: 1 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: visible !important;
  max-width: 540px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 4px 0 !important;
}

#scan .scan-head {
  padding: 8px 14px !important;
  margin-bottom: 10px !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
}

#scan .scan-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

#scan .viewport {
  position: relative !important;
  flex: 1 0 auto !important;
  min-height: 280px !important;
  max-height: 52dvh !important;
  aspect-ratio: 1 / 1.15 !important;
  border-radius: 20px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.25) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
}

/* 3. Compact Verdict & Counter */
#scan .verdict {
  margin-top: 10px !important;
  padding: 12px 16px !important;
  min-height: 52px !important;
  border-radius: 14px !important;
}

#scan .v-main {
  font-size: 17px !important;
}

#scan .v-sub {
  font-size: 12px !important;
}

#scan .counter {
  margin-top: 10px !important;
  padding: 12px 16px !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
}

#scan .counter .c-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

#scan .counter .c-num {
  font-size: 18px !important;
  font-weight: 700;
  color: #38BDF8;
}

#scan .counter .bar {
  height: 6px !important;
}

/* 4. Compact Recent Scans Horizontal Ticker */
#scan .gate-recent {
  margin-top: 10px !important;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
}

#scan .recent-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin: 0 0 6px;
  font-weight: 700;
}

#scan .recent-list {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding-bottom: 2px !important;
  scrollbar-width: none;
}

#scan .recent-list::-webkit-scrollbar {
  display: none;
}

#scan .recent-list li {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body:has(#scan:not([hidden])) .foot,
body:has(#join:not([hidden])) .foot {
  padding: 10px 0 !important;
  margin-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ── GLOBAL CREATIVE CYBER AESTHETIC UPGRADE ACROSS ALL PAGES ── */

/* 1. Global Background Ambient Cyber Glows */
body {
  background: radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 15% 85%, rgba(99, 102, 241, 0.07) 0%, transparent 40%),
              #070B16 !important;
  color: #F8FAFC !important;
  min-height: 100vh;
}

/* 2. Brand Masthead Cyber Treatment */
.mast {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 8px 16px !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.brand-group .logo {
  font-family: var(--f-display) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  background: linear-gradient(135deg, #FFFFFF 0%, #38BDF8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.mast-role {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  font-family: monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
}

/* 3. Event View Poster Card 3D Treatment */
.poster {
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.18) !important;
  position: relative !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease !important;
}

.poster:hover {
  transform: translateY(-3px) scale(1.01) !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.3) !important;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(7, 11, 22, 0.95) 100%);
  pointer-events: none;
}

.poster-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important;
  font-weight: 800 !important;
}

/* 4. Glass Cards for Dashboard (Checked In & Gate Box) */
.stat, .gatebox {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6) !important;
  position: relative !important;
}

.gate-code {
  font-family: monospace !important;
  letter-spacing: 0.2em !important;
  color: #38BDF8 !important;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.5) !important;
}

/* 5. Modern Glass Passlist Items */
.passlist li {
  background: rgba(15, 23, 42, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  margin-bottom: 8px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.passlist li:hover {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.15) !important;
}

.pl-name {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}

.pl-meta .in {
  color: #34D399 !important;
  font-weight: 600 !important;
}

/* 6. Buttons Glow Treatment */
.btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #4F46E5 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35) !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.5), 0 0 25px rgba(56, 189, 248, 0.4) !important;
}

.btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #E2E8F0 !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

.btn:hover {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #38BDF8 !important;
  transform: translateY(-1px) !important;
}

/* 7. Input Fields Glowing Focus */
.input, .select, .textarea {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
  transition: all 0.25s ease !important;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35), 0 0 0 1px #38BDF8 !important;
  background: rgba(15, 23, 42, 0.95) !important;
}
