/*
Theme Name: FlikTix Theme
Theme URI: https://fliktix.app
Author: FlikTix
Author URI: https://fliktix.app
Description: Premium event ticketing platform theme with glass morphism design, full organizer dashboard, Stripe payments, QR check-in, performer and venue profiles, and more.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: fliktix
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --fl-acid:        #E8FF4D;
  --fl-acid-dark:   #C9F008;
  --fl-acid-muted:  rgba(232,255,77,.12);
  --fl-bg:          #050507;
  --fl-bg-2:        #0a0a0f;
  --fl-surface:     rgba(255,255,255,.04);
  --fl-surface-2:   rgba(255,255,255,.07);
  --fl-border:      rgba(255,255,255,.08);
  --fl-border-2:    rgba(255,255,255,.14);
  --fl-text:        #ffffff;
  --fl-muted:       #a1a1aa;
  --fl-muted-2:     #52525b;
  --fl-success:     #4ade80;
  --fl-danger:      #f87171;
  --fl-warning:     #fbbf24;
  --fl-info:        #60a5fa;
  --fl-radius-sm:   .5rem;
  --fl-radius:      .75rem;
  --fl-radius-lg:   1rem;
  --fl-radius-xl:   1.5rem;
  --fl-radius-2xl:  2rem;
  --fl-container:   1320px;
  --fl-nav-h:       68px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--fl-bg);
  color: var(--fl-text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.fl-container {
  width: 100%;
  max-width: var(--fl-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-main { min-height: 60vh; }

.fl-section { padding: 5rem 0; }
.fl-section-sm { padding: 3rem 0; }

.fl-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.fl-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.fl-section-sub {
  color: var(--fl-muted);
  margin-top: .4rem;
  font-size: .95rem;
}

.fl-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fl-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.fl-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; }

/* ═══════════════════════════════════════════
   ANNOUNCEMENT BANNER
═══════════════════════════════════════════ */
#fl-announcement-banner {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: .7rem 1rem;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}

#fl-announcement-banner a { color: inherit; }

/* ═══════════════════════════════════════════
   HEADER BANNER IMAGE (below nav)
═══════════════════════════════════════════ */
#fl-sitewide-banner {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: relative;
}

#fl-sitewide-banner img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.fl-navbar {
  position: sticky;
  top: 0;
  z-index: 998;
  height: var(--fl-nav-h);
  background: rgba(5,5,7,.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--fl-border);
}

.fl-navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Brand */
.fl-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.fl-brand-mark {
  width: 34px;
  height: 34px;
  background: var(--fl-acid);
  color: #050507;
  border-radius: .55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -.04em;
  flex-shrink: 0;
}

.fl-brand > span:last-child {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: #fff;
}

.fl-brand-accent { color: var(--fl-acid); }

/* Nav links */
.fl-nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex: 1;
}

.fl-nav-links a {
  display: inline-flex;
  align-items: center;
  padding: .45rem .75rem;
  border-radius: var(--fl-radius-sm);
  font-size: .82rem;
  font-weight: 500;
  color: var(--fl-muted);
  text-decoration: none;
  transition: color .15s, background .15s;
  white-space: nowrap;
}

.fl-nav-links a:hover {
  color: #fff;
  background: var(--fl-surface-2);
}

.fl-nav-links a.active, .fl-nav-links a[aria-current="page"] {
  color: var(--fl-acid);
}

/* Nav actions */
.fl-nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.fl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem 1.25rem;
  border-radius: var(--fl-radius);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  line-height: 1;
  font-family: inherit;
}

.fl-btn:active { transform: scale(.97); }

.fl-btn-primary {
  background: var(--fl-acid);
  color: #050507;
}
.fl-btn-primary:hover { background: var(--fl-acid-dark); }

.fl-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--fl-border-2);
}
.fl-btn-outline:hover { background: var(--fl-surface-2); border-color: rgba(255,255,255,.25); }

.fl-btn-ghost {
  background: transparent;
  color: var(--fl-acid);
  border: 1px solid rgba(232,255,77,.3);
}
.fl-btn-ghost:hover { background: var(--fl-acid-muted); }

.fl-btn-danger {
  background: rgba(248,113,113,.15);
  color: var(--fl-danger);
  border: 1px solid rgba(248,113,113,.25);
}
.fl-btn-danger:hover { background: rgba(248,113,113,.25); }

.fl-btn-sm { padding: .4rem .9rem; font-size: .78rem; }
.fl-btn-lg { padding: .85rem 1.75rem; font-size: .95rem; }

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

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.fl-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-xl);
  overflow: hidden;
}

.fl-card-pad { padding: 1.5rem; }

.fl-card-hover {
  transition: border-color .2s, transform .2s;
}
.fl-card-hover:hover {
  border-color: rgba(232,255,77,.25);
  transform: translateY(-3px);
}

/* Glass card variant */
.fl-glass {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-xl);
}

/* ═══════════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════════ */
.fl-stat {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-lg);
  padding: 1.25rem;
}

.fl-stat-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fl-muted-2);
  margin-bottom: .5rem;
}

.fl-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1;
}

.fl-stat-delta {
  font-size: .75rem;
  color: var(--fl-acid);
  margin-top: .4rem;
}

/* ═══════════════════════════════════════════
   BADGES & PILLS
═══════════════════════════════════════════ */
.fl-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.fl-badge-acid    { background: rgba(232,255,77,.15); color: var(--fl-acid); }
.fl-badge-success { background: rgba(74,222,128,.12); color: var(--fl-success); }
.fl-badge-danger  { background: rgba(248,113,113,.12); color: var(--fl-danger); }
.fl-badge-warning { background: rgba(251,191,36,.12); color: var(--fl-warning); }
.fl-badge-info    { background: rgba(96,165,250,.12); color: var(--fl-info); }
.fl-badge-muted   { background: var(--fl-surface-2); color: var(--fl-muted); }

/* ═══════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════ */
.fl-input, .fl-select {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--fl-border-2);
  color: #fff;
  font-size: .88rem;
  padding: .8rem 1rem;
  border-radius: var(--fl-radius);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}

.fl-input:focus, .fl-select:focus {
  border-color: rgba(232,255,77,.5);
  box-shadow: 0 0 0 3px rgba(232,255,77,.08);
}

.fl-input::placeholder { color: var(--fl-muted-2); }

.fl-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.fl-select option { background: #18181b; color: #fff; }

.fl-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fl-muted-2);
  margin-bottom: .45rem;
}

.fl-field { display: flex; flex-direction: column; gap: .4rem; }

/* ═══════════════════════════════════════════
   EVENT CARDS
═══════════════════════════════════════════ */
.fl-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.fl-ev-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-xl);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .25s;
}

.fl-ev-card:hover {
  border-color: rgba(232,255,77,.3);
  transform: translateY(-4px);
}

.fl-ev-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: #0a0a0f;
}

.fl-ev-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.fl-ev-card:hover .fl-ev-card-img img { transform: scale(1.06); }

.fl-ev-card-date-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: rgba(5,5,7,.85);
  border: 1px solid var(--fl-border-2);
  border-radius: .6rem;
  padding: .35rem .55rem;
  text-align: center;
  line-height: 1.15;
  backdrop-filter: blur(8px);
}

.fl-ev-card-date-badge .mon {
  display: block;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fl-acid);
}

.fl-ev-card-date-badge .day {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.03em;
}

.fl-ev-card-cat {
  position: absolute;
  top: .75rem;
  right: .75rem;
}

.fl-ev-card-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fl-ev-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: .4rem;
  letter-spacing: -.01em;
}

.fl-ev-card-meta {
  font-size: .78rem;
  color: var(--fl-muted);
  margin-top: auto;
  padding-top: .6rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.fl-ev-card-meta svg { color: var(--fl-acid); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   HERO (front page)
═══════════════════════════════════════════ */
.fl-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.fl-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #0a0a14;
}

.fl-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5,5,7,.9) 0%,
    rgba(5,5,7,.6) 50%,
    rgba(5,5,7,.3) 100%
  );
}

.fl-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.fl-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fl-acid);
  margin-bottom: 1.25rem;
}

.fl-hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fl-acid);
  border-radius: 2px;
}

.fl-hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 1.25rem;
}

.fl-hero-title em {
  font-style: normal;
  color: var(--fl-acid);
}

.fl-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--fl-muted);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 2rem;
}

.fl-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero featured event card */
.fl-hero-event {
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(480px, 42vw);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--fl-radius-2xl);
  overflow: hidden;
  backdrop-filter: blur(20px);
  z-index: 1;
}

.fl-hero-event-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.fl-hero-event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fl-hero-event-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.fl-hero-event-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: .6rem 0 .4rem;
}

.fl-hero-event-meta {
  font-size: .8rem;
  color: var(--fl-muted);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   PROMO BANNER
═══════════════════════════════════════════ */
.fl-promo-banner {
  position: relative;
  border-radius: var(--fl-radius-2xl);
  overflow: hidden;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.fl-promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,5,7,.85) 0%, rgba(5,5,7,.4) 60%, transparent 100%);
}

.fl-promo-content {
  position: relative;
  z-index: 1;
  padding: 3rem;
  max-width: 520px;
}

/* ═══════════════════════════════════════════
   PROFILE CARDS
═══════════════════════════════════════════ */
.fl-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.fl-profile-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-xl);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s, transform .25s;
  display: block;
}

.fl-profile-card:hover {
  border-color: rgba(232,255,77,.3);
  transform: translateY(-4px);
}

.fl-profile-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #0a0a0f;
  position: relative;
}

.fl-profile-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.fl-profile-card:hover .fl-profile-card-img img { transform: scale(1.06); }

.fl-profile-card-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--fl-acid);
  background: rgba(232,255,77,.06);
  letter-spacing: -.04em;
}

.fl-profile-card-body { padding: 1rem 1.1rem; }

.fl-profile-card-name {
  font-weight: 700;
  color: #fff;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.01em;
}

.fl-profile-card-sub {
  font-size: .75rem;
  color: var(--fl-muted);
  margin-top: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fl-profile-card-links {
  display: flex;
  gap: .35rem;
  margin-top: .65rem;
}

.fl-profile-link-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

/* ═══════════════════════════════════════════
   ORGANIZER DASHBOARD SIDEBAR
═══════════════════════════════════════════ */
.fl-org-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 3rem 0 5rem;
}

.fl-org-sidebar {
  position: sticky;
  top: calc(var(--fl-nav-h) + 1.5rem);
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.fl-org-sidebar-title {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fl-muted-2);
  padding: .5rem .75rem;
  margin-bottom: .25rem;
}

.fl-org-side-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .85rem;
  border-radius: var(--fl-radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--fl-muted);
  text-decoration: none;
  transition: color .15s, background .15s;
}

.fl-org-side-link:hover {
  color: #fff;
  background: var(--fl-surface-2);
}

.fl-org-side-link.active {
  color: var(--fl-acid);
  background: var(--fl-acid-muted);
  font-weight: 600;
}

.fl-org-side-divider {
  height: 1px;
  background: var(--fl-border);
  margin: .5rem 0;
}

/* ═══════════════════════════════════════════
   TICKET COMPONENT
═══════════════════════════════════════════ */
.fl-ticket {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-xl);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: border-color .15s;
}

.fl-ticket:hover { border-color: var(--fl-border-2); }

.fl-ticket-qr {
  width: 60px;
  height: 60px;
  background: var(--fl-acid-muted);
  border: 1px solid rgba(232,255,77,.2);
  border-radius: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fl-ticket-type {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fl-muted-2);
}

.fl-ticket-event {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  margin: .2rem 0;
}

.fl-ticket-code {
  font-family: ui-monospace, monospace;
  font-size: .72rem;
  color: var(--fl-acid);
}

/* ═══════════════════════════════════════════
   SINGLE EVENT PAGE
═══════════════════════════════════════════ */
.fl-ev-cover {
  position: relative;
  height: clamp(320px, 45vw, 520px);
  background-size: cover;
  background-position: center;
  background-color: #0a0a14;
}

.fl-ev-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,7,.2), rgba(5,5,7,.85));
}

.fl-ev-cover-topbar {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1;
}

.fl-ev-back-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  background: rgba(5,5,7,.6);
  border: 1px solid var(--fl-border-2);
  padding: .45rem .9rem;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  transition: color .15s, background .15s;
  text-decoration: none;
}

.fl-ev-back-btn:hover { color: #fff; background: rgba(5,5,7,.85); }

.fl-ev-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  padding: 2.5rem 0 5rem;
  align-items: start;
}

.fl-ev-right { position: sticky; top: calc(var(--fl-nav-h) + 1.5rem); }

.fl-ev-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.fl-ev-meta-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.fl-ev-meta-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  color: var(--fl-muted);
}

.fl-ev-meta-item svg { color: var(--fl-acid); }

/* Ticket type cards */
.fl-ticket-type-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-lg);
  padding: 1.1rem;
  transition: border-color .15s;
}

.fl-ticket-type-card:hover { border-color: rgba(232,255,77,.3); }

.fl-ticket-type-card .fl-btn { width: 100%; margin-top: .85rem; }

/* ═══════════════════════════════════════════
   PROFILE SINGLE PAGE
═══════════════════════════════════════════ */
.fl-prf-cover {
  position: relative;
  height: clamp(200px, 30vw, 340px);
  background-size: cover;
  background-position: center;
  background-color: #0a0a14;
}

.fl-prf-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,7,.1), rgba(5,5,7,.8));
}

.fl-prf-body { padding-bottom: 5rem; }

.fl-prf-header {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 0 0 2rem;
  margin-top: -56px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.fl-prf-avatar {
  width: 112px;
  height: 112px;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 3px solid rgba(232,255,77,.2);
  flex-shrink: 0;
  background: #18181b;
}

.fl-prf-avatar img { width: 100%; height: 100%; object-fit: cover; }

.fl-prf-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fl-acid);
  background: rgba(232,255,77,.08);
}

.fl-prf-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--fl-acid-muted);
  color: var(--fl-acid);
  margin-bottom: .5rem;
}

.fl-prf-name {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin: 0 0 .35rem;
}

.fl-prf-tagline { color: var(--fl-muted); font-size: .9rem; margin: 0 0 .85rem; }

.fl-prf-meta-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .85rem; }

.fl-prf-meta-pill {
  font-size: .75rem;
  color: var(--fl-muted);
  background: var(--fl-surface-2);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--fl-border);
}

.fl-prf-social-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border-radius: var(--fl-radius);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--fl-surface-2);
  border: 1px solid var(--fl-border-2);
  color: var(--fl-muted);
  transition: all .15s;
}

.fl-prf-social-btn:hover {
  background: var(--fl-surface);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}

.fl-prf-grid {
  display: grid;
  grid-template-columns: 1.5fr .7fr;
  gap: 1.5rem;
  align-items: start;
}

.fl-prf-right { position: sticky; top: calc(var(--fl-nav-h) + 1.5rem); }

/* Profile event rows */
.fl-prf-event-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem;
  border-radius: var(--fl-radius-lg);
  border: 1px solid var(--fl-border);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.fl-prf-event-row:hover {
  border-color: rgba(232,255,77,.3);
  background: var(--fl-acid-muted);
}

/* ═══════════════════════════════════════════
   CHECK-IN PAGE
═══════════════════════════════════════════ */
.fl-checkin-scanner {
  background: #000;
  border-radius: var(--fl-radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.fl-checkin-scanner video { width: 100%; height: 100%; object-fit: cover; }

.fl-scan-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.fl-scan-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  border-color: var(--fl-acid);
  border-style: solid;
  border-width: 0;
}

.fl-scan-corner.tl { top: 20%; left: 20%; border-top-width: 3px; border-left-width: 3px; border-radius: 4px 0 0 0; }
.fl-scan-corner.tr { top: 20%; right: 20%; border-top-width: 3px; border-right-width: 3px; border-radius: 0 4px 0 0; }
.fl-scan-corner.bl { bottom: 20%; left: 20%; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 4px; }
.fl-scan-corner.br { bottom: 20%; right: 20%; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 4px 0; }

/* ═══════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════ */
.fl-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--fl-radius-lg);
  font-size: .88rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.fl-alert-success { background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.2); color: var(--fl-success); }
.fl-alert-error   { background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.2); color: var(--fl-danger); }
.fl-alert-warning { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.2); color: var(--fl-warning); }
.fl-alert-info    { background: rgba(96,165,250,.08); border: 1px solid rgba(96,165,250,.2); color: var(--fl-info); }

/* ═══════════════════════════════════════════
   SPINNER
═══════════════════════════════════════════ */
.fl-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(232,255,77,.15);
  border-top-color: var(--fl-acid);
  border-radius: 50%;
  animation: fl-spin .7s linear infinite;
  margin: 0 auto;
}

@keyframes fl-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.fl-footer {
  background: #020203;
  border-top: 1px solid var(--fl-border);
  padding: 4rem 0 0;
  margin-top: 4rem;
}

.fl-footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.fl-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fl-footer-tagline {
  font-size: .88rem;
  color: var(--fl-muted);
  line-height: 1.65;
  max-width: 280px;
}

.fl-footer-social {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.fl-footer-social-btn {
  width: 36px;
  height: 36px;
  background: var(--fl-surface-2);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fl-muted);
  transition: all .15s;
  text-decoration: none;
}

.fl-footer-social-btn:hover {
  background: var(--fl-acid-muted);
  border-color: rgba(232,255,77,.3);
  color: var(--fl-acid);
}

.fl-footer-col h4 {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fl-muted-2);
  margin-bottom: 1.1rem;
}

.fl-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }

.fl-footer-col ul li a {
  font-size: .84rem;
  color: var(--fl-muted);
  text-decoration: none;
  transition: color .15s;
}

.fl-footer-col ul li a:hover { color: #fff; }

.fl-footer-mid {
  border-top: 1px solid var(--fl-border);
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.fl-footer-newsletter {
  display: flex;
  gap: .5rem;
  max-width: 400px;
  flex: 1;
}

.fl-footer-newsletter input {
  flex: 1;
  background: var(--fl-surface-2);
  border: 1px solid var(--fl-border-2);
  color: #fff;
  font-size: .82rem;
  padding: .65rem 1rem;
  border-radius: var(--fl-radius);
  outline: none;
  font-family: inherit;
}

.fl-footer-newsletter input:focus { border-color: rgba(232,255,77,.4); }
.fl-footer-newsletter input::placeholder { color: var(--fl-muted-2); }

.fl-footer-bottom {
  border-top: 1px solid var(--fl-border);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.fl-footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fl-footer-bottom-links a {
  font-size: .78rem;
  color: var(--fl-muted-2);
  text-decoration: none;
  transition: color .15s;
}

.fl-footer-bottom-links a:hover { color: var(--fl-muted); }

.fl-footer-copy {
  font-size: .78rem;
  color: var(--fl-muted-2);
}

/* ═══════════════════════════════════════════
   PILL SELECTORS (event form)
═══════════════════════════════════════════ */
.fl-profile-pill {
  padding: .4rem .9rem;
  border-radius: 99px;
  border: 1px solid var(--fl-border-2);
  background: transparent;
  color: var(--fl-muted);
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.fl-profile-pill:hover { border-color: rgba(232,255,77,.4); color: #fff; }
.fl-profile-pill.selected { border-color: var(--fl-acid); background: var(--fl-acid-muted); color: var(--fl-acid); font-weight: 600; }

.fl-profile-selected-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: .75rem;
  background: var(--fl-acid-muted);
  color: var(--fl-acid);
  border: 1px solid rgba(232,255,77,.2);
}

/* ═══════════════════════════════════════════
   SPONSOR CARDS
═══════════════════════════════════════════ */
.fl-sponsor-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border-radius: var(--fl-radius-lg);
  border: 1px solid var(--fl-border);
  text-decoration: none;
  transition: border-color .15s, background .15s;
  background: var(--fl-surface);
}

.fl-sponsor-card:hover {
  border-color: rgba(232,255,77,.3);
  background: var(--fl-acid-muted);
}

.fl-sponsor-logo {
  width: 48px;
  height: 48px;
  border-radius: .65rem;
  object-fit: cover;
  flex-shrink: 0;
}

.fl-sponsor-initials {
  width: 48px;
  height: 48px;
  border-radius: .65rem;
  background: var(--fl-acid-muted);
  border: 1px solid rgba(232,255,77,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--fl-acid);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   MOBILE HAMBURGER
═══════════════════════════════════════════ */
.fl-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--fl-radius-sm);
  transition: background .15s;
}

.fl-hamburger:hover { background: var(--fl-surface-2); }

.fl-ham-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

.fl-hamburger.is-open .fl-ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fl-hamburger.is-open .fl-ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.fl-hamburger.is-open .fl-ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.fl-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #080809;
  border-left: 1px solid var(--fl-border);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  padding-top: 80px;
  overflow-y: auto;
}

.fl-mobile-menu.is-open { transform: translateX(0); }

.fl-mobile-menu-inner {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 2.5rem;
}

.fl-mobile-section-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fl-muted-2);
  padding: .9rem .75rem .3rem;
}

.fl-mobile-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem .75rem;
  color: var(--fl-muted);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--fl-radius-sm);
  transition: color .15s, background .15s;
}

.fl-mobile-link:hover { color: #fff; background: var(--fl-surface-2); }
.fl-mobile-link.active { color: var(--fl-acid); background: var(--fl-acid-muted); }
.fl-mobile-divider { height: 1px; background: var(--fl-border); margin: .5rem 0; }

/* Overlay */
.fl-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  backdrop-filter: blur(4px);
}

.fl-menu-overlay.is-open { opacity: 1; pointer-events: all; }

/* ═══════════════════════════════════════════
   REPORT / LEADERBOARD
═══════════════════════════════════════════ */
.fl-perf-row {
  display: grid;
  grid-template-columns: 2rem 1fr 90px 90px 60px 120px;
  gap: 1rem;
  padding: .85rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  align-items: center;
  font-size: .88rem;
}

.fl-perf-row:last-child { border-bottom: none; }
.fl-perf-rank { font-weight: 700; color: var(--fl-muted-2); text-align: center; }
.fl-perf-rank.top1 { color: #fbbf24; }
.fl-perf-rank.top2 { color: #a1a1aa; }
.fl-perf-rank.top3 { color: #cd7f32; }

.fl-perf-bar-wrap { background: var(--fl-surface-2); border-radius: 99px; height: 5px; overflow: hidden; }
.fl-perf-bar { height: 5px; border-radius: 99px; background: var(--fl-acid); transition: width .4s ease; }

/* ═══════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════ */
.fl-stack { display: flex; flex-direction: column; gap: 1rem; }
.fl-stack-sm { display: flex; flex-direction: column; gap: .5rem; }
.fl-pad { padding: 1.5rem; }
.fl-prose { color: var(--fl-muted); line-height: 1.75; font-size: .95rem; }
.fl-prose p { margin-bottom: 1rem; }
.fl-prose p:last-child { margin-bottom: 0; }
.fl-text-acid { color: var(--fl-acid); }
.fl-text-muted { color: var(--fl-muted); }
.fl-divider { height: 1px; background: var(--fl-border); margin: 1.5rem 0; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .fl-hero-event { display: none; }
  .fl-footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .fl-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .fl-ev-body { grid-template-columns: 1fr; }
  .fl-ev-right { position: static; }
  .fl-prf-grid { grid-template-columns: 1fr; }
  .fl-prf-right { position: static; }
  .fl-org-layout { grid-template-columns: 1fr; }
  .fl-org-sidebar { position: static; }
  .fl-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .fl-nav-links { display: none; }
  .fl-nav-actions { display: none; }
  .fl-hamburger { display: flex; }
  .fl-grid-3, .fl-grid-2 { grid-template-columns: 1fr; }
  .fl-grid-4 { grid-template-columns: 1fr; }
  .fl-footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .fl-footer-brand { grid-column: 1 / -1; }
  .fl-hero { min-height: 70vh; }
  .fl-section { padding: 3.5rem 0; }
  .fl-footer-mid { flex-direction: column; }
  .fl-footer-newsletter { max-width: 100%; }
}

@media (max-width: 480px) {
  .fl-footer-top { grid-template-columns: 1fr; }
  .fl-profiles-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fl-events-grid { grid-template-columns: 1fr; }
}
