@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Barlow+Condensed:wght@600;700;800&display=swap');

/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --red:    #c9172b;        /* logo crimson red */
  --dark:   #0a0a0e;        /* near-black base */
  --navy:   #0e0e18;        /* dark panel bg */
  --mid:    #131320;        /* card bg */
  --gold:   #c9a227;        /* logo deep gold */
  --gold-bright: #f0c040;   /* highlight gold */
  --blue:   #1c3d8c;        /* logo royal blue */
  --blue-bright: #2d5fd4;   /* lighter blue accent */
  --text:   #e8e4d0;        /* warm off-white */
  --muted:  #7a7060;        /* muted gold-grey */
  --card:   rgba(201,162,39,0.05);
  --border: rgba(201,162,39,0.18);
  --radius: 0px;
}

/* ── Wrap ────────────────────────────────────────────────────────────────────── */
.vbxa-wrap {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  max-width: 780px;
  margin: 0 auto;
  padding: 0 0 60px;
}

/* ── Header ──────────────────────────────────────────────────────────────────── */
.vbxa-header {
  text-align: center;
  padding: 40px 20px 32px;
  margin-bottom: 32px;
}
.vbxa-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(201,162,39,0.4);
}
.vbxa-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Sections ────────────────────────────────────────────────────────────────── */
.vbxa-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(201,162,39,0.08);
}

.vbxa-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vbxa-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--red);
}
.vbxa-dot.captain { background: var(--gold-bright); }
.vbxa-dot.member  { background: var(--blue-bright); }
.vbxa-dot.sub     { background: #7b6fd4; }
.vbxa-dot.upload  { background: var(--gold); }
.vbxa-dot.pay     { background: var(--gold-bright); }
.vbxa-dot.receipt { background: var(--red); }

/* ── Fields ──────────────────────────────────────────────────────────────────── */
.vbxa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) { .vbxa-grid { grid-template-columns: 1fr; } }

.vbxa-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.vbxa-field .req { color: var(--red); }

.vbxa-field input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  background: rgba(10,10,14,0.6);
  border: 1px solid rgba(201,162,39,0.30);
  border-radius: 0;
  padding: 10px 14px;
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.vbxa-field input[type="text"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}
.vbxa-field input::placeholder { color: var(--muted); }

/* ── Sub toggle ──────────────────────────────────────────────────────────────── */
.vbxa-sub-toggle { text-align: center; }
.vbxa-btn-outline {
  background: transparent;
  border: 1px solid rgba(201,162,39,0.45);
  color: var(--gold);
  padding: 9px 22px;
  border-radius: 0;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.vbxa-btn-outline:hover { border-color: var(--gold-bright); color: var(--gold-bright); background: rgba(201,162,39,0.08); }
.vbxa-sub-block { margin-top: 18px; }

/* ── Upload areas ────────────────────────────────────────────────────────────── */
.vbxa-upload-area {
  border: 2px dashed rgba(201,162,39,0.25);
  border-radius: 0;
  padding: 28px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  position: relative;
}
.vbxa-upload-area:hover { border-color: var(--gold); background: rgba(201,162,39,0.05); }
.vbxa-upload-area input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.vbxa-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  pointer-events: none;
}
.vbxa-upload-icon { font-size: 28px; }
.vbxa-upload-label span { font-weight: 600; color: var(--text); font-size: 15px; }
.vbxa-upload-label small { color: var(--muted); font-size: 12px; }
.vbxa-file-preview { margin-top: 10px; font-size: 13px; color: var(--gold-bright); font-weight: 700; }

/* ── Upload progress bar ─────────────────────────────────────────────────────── */
.vbxa-upload-progress {
  margin-top: 14px;
  display: none;
}
.vbxa-progress-track {
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}
.vbxa-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.25s ease;
  box-shadow: 0 0 8px rgba(201,162,39,0.5);
}
.vbxa-progress-label {
  font-size: 11px;
  color: var(--gold-bright);
  margin-top: 6px;
  text-align: right;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ── QR codes ────────────────────────────────────────────────────────────────── */
.vbxa-pay-note { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.vbxa-qr-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.vbxa-qr-box {
  background: #fff;
  border-radius: 0;
  padding: 16px;
  text-align: center;
  border: 2px solid var(--gold);
}
.vbxa-qr-box img { width: 240px; height: 340px; object-fit: contain; display: block; margin: 0 auto 8px; }
.vbxa-qr-box span { font-size: 12px; font-weight: 700; color: #1a1a2e; letter-spacing: 0.06em; text-transform: uppercase; }

.vbxa-submit-progress-bar {
  max-width: 460px;
  margin: 0 auto 20px;
}
.vbxa-submit-progress-bar .vbxa-progress-track { height: 10px; }
.vbxa-submit-progress-bar .vbxa-progress-label {
  text-align: center;
  font-size: 12px;
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* ── Submit ──────────────────────────────────────────────────────────────────── */
.vbxa-submit-wrap { text-align: center; margin-top: 28px; }
.vbxa-btn-submit {
  background: linear-gradient(135deg, var(--red) 0%, #a01020 100%);
  color: #fff;
  border: 1px solid rgba(201,162,39,0.4);
  padding: 15px 48px;
  border-radius: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201,23,43,0.40), 0 0 0 1px rgba(201,162,39,0.2);
}
.vbxa-btn-submit:hover  { background: linear-gradient(135deg, #e01030 0%, #c01828 100%); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,23,43,0.55), 0 0 0 1px rgba(201,162,39,0.3); }
.vbxa-btn-submit:active { transform: translateY(0); }
.vbxa-submit-note { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ── Alerts ──────────────────────────────────────────────────────────────────── */
.vbxa-success {
  background: rgba(201,162,39,0.08);
  border: 1.5px solid var(--gold);
  color: var(--gold-bright);
  padding: 48px 32px;
  border-radius: 0;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}
.vbxa-success-icon {
  font-size: 52px;
  margin-bottom: 20px;
  display: block;
}
.vbxa-success-msg {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-bright);
  margin: 0 0 10px;
}
.vbxa-success-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 28px;
}
.vbxa-success-link {
  color: var(--gold-bright);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vbxa-success-link:hover { color: #fff; }
.vbxa-btn-another {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-bright);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
  transition: background .2s, color .2s;
  margin-top: 8px;
}
.vbxa-btn-another:hover {
  background: rgba(201,162,39,.15);
  color: #fff;
}
.vbxa-error {
  background: rgba(201,23,43,0.10);
  border: 1.5px solid var(--red);
  color: var(--red);
  padding: 16px 20px;
  border-radius: 0;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}
.vbxa-closed {
  text-align: center;
  padding: 60px 20px;
  color: var(--text);
  font-family: 'Barlow', sans-serif;
}
.vbxa-closed-icon { font-size: 48px; margin-bottom: 16px; }
.vbxa-closed h2   { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; color: var(--gold-bright); margin: 0 0 8px; }
.vbxa-closed p    { color: var(--muted); }

/* ── Teams Page ──────────────────────────────────────────────────────────────── */
.vbxa-teams-wrap { font-family: 'Barlow', sans-serif; max-width: 960px; margin: 0 auto; padding: 0 0 60px; }
.vbxa-teams-header {
  text-align: center;
  padding: 40px 20px 32px;
  background: transparent;
  margin-bottom: 32px;
}
.vbxa-teams-header h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 700; color: var(--gold-bright); margin: 0 0 6px; text-shadow: 0 0 20px rgba(201,162,39,0.4); }
.vbxa-teams-header p  { color: var(--muted); margin: 0; font-size: 15px; }

.vbxa-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  padding: 0 16px;
}
.vbxa-team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: cardIn 0.4s ease both;
  color: var(--text);
}
@keyframes cardIn {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: translateY(0); }
}
.vbxa-team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,162,39,0.25); }

.vbxa-card-poster img { width: 100%; height: 180px; object-fit: cover; display: block; }
.vbxa-card-body { padding: 16px 18px 18px; }
.vbxa-card-num { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: 0.15em; margin-bottom: 4px; }
.vbxa-card-name { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; color: var(--gold-bright); margin: 0 0 6px; }
.vbxa-card-captain { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.vbxa-card-members { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.vbxa-member-tag {
  font-size: 11px; font-weight: 600;
  background: rgba(28,61,140,0.25);
  border: 1px solid rgba(45,95,212,0.25);
  padding: 3px 8px;
  border-radius: 0;
  color: var(--text);
}
.vbxa-card-meta { font-size: 12px; color: var(--muted); }
.vbxa-card-status {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0;
}
.vbxa-card-status-approved { background: rgba(201,162,39,0.12); color: var(--gold-bright); }
.vbxa-card-status-pending  { background: rgba(28,61,140,0.20);  color: var(--blue-bright); }
.vbxa-card-status-rejected { background: rgba(201,23,43,0.15);  color: var(--red); }
.vbxa-no-teams { text-align: center; padding: 60px 20px; color: var(--muted); font-family: 'Barlow', sans-serif; font-size: 16px; }


/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATION EFFECTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Keyframes ─────────────────────────────────────────────────────────────── */

@keyframes vbxaFadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vbxaFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes vbxaTitleReveal {
  0%   { opacity: 0; letter-spacing: 0.18em; transform: translateY(12px); }
  100% { opacity: 1; letter-spacing: 0.02em; transform: translateY(0); }
}

@keyframes vbxaAlertIn {
  0%   { opacity: 0; transform: translateY(-12px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vbxaShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}

@keyframes vbxaQrPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0.0); }
  50%       { box-shadow: 0 0 0 6px rgba(201,162,39,0.18); }
}

@keyframes vbxaDotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes vbxaCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}



/* ── Wrap & Header entrance ──────────────────────────────────────────────── */
.vbxa-wrap {
  animation: vbxaFadeIn 0.5s ease both;
}

.vbxa-header {
  animation: vbxaFadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vbxa-title {
  animation: vbxaTitleReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vbxa-subtitle {
  animation: vbxaFadeIn 0.6s 0.2s ease both;
}

/* ── Sections stagger in ─────────────────────────────────────────────────── */
.vbxa-section {
  animation: vbxaFadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: border-color 0.25s, box-shadow 0.25s;
}

/* Stagger each section using nth-child */
.vbxa-section:nth-child(1)  { animation-delay: 0.05s; }
.vbxa-section:nth-child(2)  { animation-delay: 0.10s; }
.vbxa-section:nth-child(3)  { animation-delay: 0.15s; }
.vbxa-section:nth-child(4)  { animation-delay: 0.20s; }
.vbxa-section:nth-child(5)  { animation-delay: 0.25s; }
.vbxa-section:nth-child(6)  { animation-delay: 0.30s; }
.vbxa-section:nth-child(7)  { animation-delay: 0.35s; }
.vbxa-section:nth-child(8)  { animation-delay: 0.40s; }
.vbxa-section:nth-child(9)  { animation-delay: 0.45s; }
.vbxa-section:nth-child(10) { animation-delay: 0.50s; }

.vbxa-section:hover {
  border-color: rgba(201,162,39,0.35);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(201,162,39,0.12);
}

/* ── Section title dot blink (once on load) ─────────────────────────────── */
.vbxa-dot {
  animation: vbxaDotBlink 1.2s ease 0.5s 2;
}

/* ── Input focus glow ────────────────────────────────────────────────────── */
.vbxa-field input[type="text"] {
  transition: border-color 0.2s, box-shadow 0.25s, background 0.2s, transform 0.15s;
}

.vbxa-field input[type="text"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.18), 0 2px 12px rgba(201,162,39,0.1);
  background: rgba(10,10,14,0.85);
  transform: translateY(-1px);
}

/* ── Sub-members toggle button ───────────────────────────────────────────── */
.vbxa-btn-outline {
  transition: all 0.2s, transform 0.15s cubic-bezier(0.22,1,0.36,1);
  position: relative;
  overflow: hidden;
}

.vbxa-btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,162,39,0.18);
}

.vbxa-btn-outline:active {
  transform: translateY(0) scale(0.97);
}

/* ── Upload area enhanced ────────────────────────────────────────────────── */
.vbxa-upload-area {
  transition: border-color 0.25s, background 0.25s, transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s;
}

.vbxa-upload-area:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.vbxa-upload-area.vbxa-dragover {
  border-color: var(--gold-bright);
  background: rgba(201,162,39,0.1);
  transform: scale(1.01);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.2);
}

/* ── QR box pulse ────────────────────────────────────────────────────────── */
.vbxa-qr-box {
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s;
  animation: vbxaQrPulse 2.5s ease-in-out 1s infinite;
}

.vbxa-qr-box:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(201,162,39,0.3);
  animation-play-state: paused;
}

/* ── Submit button enhanced ──────────────────────────────────────────────── */
.vbxa-submit-wrap {
  animation: vbxaFadeInUp 0.5s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vbxa-btn-submit {
  transition: background 0.2s, transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on submit hover */
.vbxa-btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.12) 50%,
    transparent 70%
  );
  background-size: 300% 100%;
  background-position: 200% 0;
  transition: background-position 0.5s ease;
}

.vbxa-btn-submit:hover::after {
  background-position: -100% 0;
}

.vbxa-btn-submit:disabled {
  opacity: 0.65;
  transform: none !important;
}

/* ── Alert animations ────────────────────────────────────────────────────── */
.vbxa-success,
.vbxa-error {
  animation: vbxaAlertIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vbxa-error.vbxa-shake {
  animation: vbxaAlertIn 0.4s cubic-bezier(0.22,1,0.36,1) both,
             vbxaShake 0.45s 0.4s ease both;
}

/* ── Teams page ──────────────────────────────────────────────────────────── */
.vbxa-teams-wrap {
  animation: vbxaFadeIn 0.5s ease both;
}

.vbxa-teams-header {
  animation: vbxaFadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Override existing cardIn with our refined version */
.vbxa-team-card {
  animation: vbxaCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s, border-color 0.25s;
}

.vbxa-team-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(201,162,39,0.4);
  box-shadow: 0 16px 36px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,162,39,0.3);
}

.vbxa-card-poster img {
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease;
}

.vbxa-team-card:hover .vbxa-card-poster img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.vbxa-member-tag {
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.vbxa-member-tag:hover {
  background: rgba(45,95,212,0.4);
  border-color: rgba(45,95,212,0.5);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Closed state ────────────────────────────────────────────────────────── */
.vbxa-closed {
  animation: vbxaFadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Respect reduced-motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
