@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Oxanium:wght@600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --navy:         #0e1f3d;
  --navy2:        #162847;
  --navy3:        #1a3258;
  --blue:         #1a6fff;
  --electric:     #00c8f5;
  --electric2:    #00f0d0;
  --accent:       #5599ff;
  --white:        #ffffff;
  --off-white:    #eef3ff;
  --text:         #c8d8f0;
  --muted:        #7a95b8;
  --muted2:       #9db5d0;
  --line:         rgba(255,255,255,0.10);
  --line2:        rgba(255,255,255,0.16);
  --card-bg:      rgba(16,30,60,0.75);
  --bg:           #101e3a;
  --bg2:          #142242;
  --danger:       #ff5252;
  --ok:           #00e096;
  --warn:         #ffbb00;
  --shadow:       0 20px 56px rgba(0,0,0,0.35);
  --glow:         0 0 48px rgba(0,180,255,0.14);
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.page-loaded { opacity: 1; }

main { flex: 1; }

/* Subtle dot grid */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(0,190,255,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

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

/* Sticky footer fix */
body { display: flex; flex-direction: column; }
main { flex: 1; min-height: calc(100vh - 68px - 80px); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'Oxanium', sans-serif;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(32px, 5.5vw, 64px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.5vw, 42px); font-weight: 700; }
h3 { font-size: clamp(16px, 2vw, 20px); font-weight: 700; }
h4 { font-size: 15px; font-weight: 600; }

p { color: var(--muted2); line-height: 1.7; font-size: 15px; }

.meta {
  color: var(--muted);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  background: rgba(14, 28, 58, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--electric), var(--blue));
  display: grid;
  place-items: center;
  font-family: 'Oxanium', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,180,255,0.4);
  flex-shrink: 0;
}

.brand strong {
  display: block;
  font-family: 'Oxanium', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.brand small {
  display: block;
  font-size: 10px;
  color: var(--electric);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1.4;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 500;
}

.main-nav > a {
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--muted2);
  transition: all 0.2s;
  font-weight: 500;
}

.main-nav > a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-user {
  font-size: 12px;
  color: var(--muted2);
  font-family: 'JetBrains Mono', monospace;
  padding: 5px 11px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  border: 1px solid var(--line2);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 8px 13px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 11px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0px); }

.btn-primary {
  background: linear-gradient(135deg, var(--electric), var(--blue));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(0,170,255,0.32);
}

.btn-primary:hover { box-shadow: 0 10px 30px rgba(0,170,255,0.46); }

.btn-outline {
  border: 1px solid var(--line2);
  color: var(--off-white);
  background: rgba(255,255,255,0.06);
}

.btn-outline:hover {
  border-color: rgba(0,200,245,0.5);
  color: var(--electric);
  background: rgba(0,200,245,0.08);
}

.btn-muted {
  background: rgba(255,255,255,0.09);
  color: var(--off-white);
  border: 1px solid var(--line2);
}

.btn-muted:hover { background: rgba(255,255,255,0.14); }

.btn-danger {
  background: rgba(255,82,82,0.12);
  color: var(--danger);
  border: 1px solid rgba(255,82,82,0.25);
}

.btn-danger:hover { background: var(--danger); color: #fff; box-shadow: 0 6px 18px rgba(255,82,82,0.3); }
.btn-sm { padding: 6px 13px; border-radius: 8px; font-size: 13px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(14,31,61,0.92) 0%, rgba(20,36,68,0.88) 50%, rgba(14,40,80,0.90) 100%),
    url('../uploads/jte.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 10% 50%, rgba(0,120,255,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 55% 70% at 90% 20%, rgba(0,210,255,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 55% 100%, rgba(0,255,210,0.1) 0%, transparent 55%);
  animation: ambientPulse 9s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
  0%   { opacity: 0.7; }
  100% { opacity: 1; }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,210,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,210,255,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at center, black 20%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: center;
  padding: 90px 24px;
  animation: heroReveal 0.9s cubic-bezier(0.22,1,0.36,1) both;
}

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

.hero h1 {
  font-size: clamp(40px, 7.5vw, 82px);
  font-weight: 800;
  margin: 18px 0 18px;
  background: linear-gradient(145deg, #ffffff 20%, #bbd6ff 50%, var(--electric) 80%, var(--electric2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero p {
  font-size: 17px;
  color: #a8c4e0;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.75;
  font-weight: 400;
}

.hero-countdown-box {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 18px 28px;
  margin: 0 auto 30px;
  backdrop-filter: blur(12px);
}

.hero-countdown-box small {
  display: block;
  color: var(--electric);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.9;
}

#main-countdown { font-size: 18px; font-weight: 600; color: var(--white); font-family: 'DM Sans', sans-serif; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ============================================================
   EYEBROW TAG
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,245,0.1);
  border: 1px solid rgba(0,200,245,0.22);
  color: var(--electric);
  border-radius: 999px;
  padding: 5px 15px;
  font-size: 10px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 8px var(--electric);
  animation: blink 2.2s ease-in-out infinite;
}

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

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: min(1120px, 90vw); margin: auto; }
.section { padding: 84px 0; position: relative; z-index: 1; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section h2 { color: var(--white); }
.section-head > div > p { color: var(--muted2); margin-top: 8px; max-width: 480px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: rgba(18,34,68,0.8);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,200,245,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,200,245,0.1);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Quota bar always pushed above actions */
.card-body .quota-bar-wrap { margin-top: auto; }

/* Push .actions to bottom of card */
.card-body .actions { margin-top: 12px; padding-top: 0; }

/* Standalone btn inside card-body also pushes to bottom */
.card-body > .btn { margin-top: auto; align-self: flex-start; }

.card h3 { margin: 10px 0 8px; line-height: 1.3; color: var(--white); }

/* Spacer between badges and meta — pushes date/location to same row */
.event-card .card-body { display: flex; flex-direction: column; flex: 1; }
.event-card .card-body h3 { min-height: 52px; }

.event-img {
  height: 196px;
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy3) 100%);
  object-fit: cover;
  width: 100%;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
  background: rgba(0,200,245,0.12);
  color: var(--electric);
  border: 1px solid rgba(0,200,245,0.22);
}

.badge.alt { background: rgba(130,150,255,0.12); color: #aabbff; border-color: rgba(130,150,255,0.22); }
.badge.ok  { background: rgba(0,224,150,0.12); color: var(--ok); border-color: rgba(0,224,150,0.22); }
.badge.warn{ background: rgba(255,187,0,0.12); color: var(--warn); border-color: rgba(255,187,0,0.22); }
.badge.danger{ background: rgba(255,82,82,0.12); color: var(--danger); border-color: rgba(255,82,82,0.22); }

/* ============================================================
   FORMS
   ============================================================ */
.input, select, textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 11px;
  padding: 12px 15px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

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

.input:focus, select:focus, textarea:focus {
  border-color: rgba(0,200,245,0.5);
  background: rgba(0,180,255,0.08);
  box-shadow: 0 0 0 3px rgba(0,200,245,0.1);
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300c8f5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

select option { background: var(--navy2); color: var(--white); }
textarea { resize: vertical; min-height: 100px; }

.form-card {
  max-width: 460px;
  margin: 64px auto;
  background: rgba(16,28,56,0.9);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric), transparent);
  opacity: 0.5;
}

.form-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(0,200,245,0.1), transparent 70%);
  pointer-events: none;
}

.form-card h1 { font-size: 26px; margin-bottom: 26px; letter-spacing: -0.01em; }
.form-row { margin-bottom: 16px; }

.label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted2);
  margin-bottom: 7px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   FILTERS
   ============================================================ */
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
  background: rgba(18,34,68,0.7);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 14px;
  backdrop-filter: blur(8px);
}

/* ============================================================
   STATS
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.stat-card {
  background: rgba(18,34,68,0.75);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  backdrop-filter: blur(8px);
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--electric), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover { border-color: rgba(0,200,245,0.25); transform: translateY(-3px); }

.stat-card strong {
  display: block;
  font-family: 'Oxanium', sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--white) 40%, var(--electric));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-card span { font-size: 13px; color: var(--muted2); font-weight: 500; display: block; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap {
  background: rgba(16,30,60,0.75);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: auto;
  backdrop-filter: blur(8px);
}

.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }

.table-wrap th {
  background: rgba(255,255,255,0.04);
  padding: 13px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

.table-wrap td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 14px;
  vertical-align: middle;
}

.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr { transition: background 0.15s; }
.table-wrap tbody tr:hover td { background: rgba(0,200,245,0.04); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(18,34,68,0.8);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.3s, border-color 0.3s;
}

.gallery figure:hover { transform: translateY(-4px); border-color: rgba(0,200,245,0.28); }
.gallery img { height: 196px; width: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 13px; font-size: 13px; font-weight: 600; color: var(--text); }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash {
  padding: 13px 20px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 14px;
  margin: 14px 5vw;
  position: relative;
  z-index: 1;
}

.flash.success { background: rgba(0,224,150,0.1); color: var(--ok); border: 1px solid rgba(0,224,150,0.25); }
.flash.error   { background: rgba(255,82,82,0.1); color: var(--danger); border: 1px solid rgba(255,82,82,0.25); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty {
  padding: 52px;
  text-align: center;
  color: var(--muted);
  background: rgba(18,34,68,0.6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 15px;
}

.empty a { color: var(--electric); }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown-inline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }

.count-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 11px;
  padding: 11px 6px;
  text-align: center;
}

.count-item strong {
  display: block;
  font-family: 'Oxanium', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.count-item span {
  font-size: 9px;
  color: var(--electric);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 68px); }

.admin-sidebar {
  background: rgba(12,24,50,0.95);
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.admin-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--blue));
  display: grid;
  place-items: center;
  font-family: 'Oxanium', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,180,255,0.3);
}

.admin-nav { display: flex; flex-direction: column; gap: 2px; }

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 11px;
  color: var(--muted2);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.admin-nav a:hover { background: rgba(255,255,255,0.07); color: var(--white); }

.admin-nav a.active {
  background: rgba(0,190,245,0.13);
  color: var(--electric);
  border: 1px solid rgba(0,190,245,0.22);
  font-weight: 600;
}

.admin-nav hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 6px 0; }
.admin-main { padding: 34px; background: var(--bg); position: relative; z-index: 1; }

/* ============================================================
   ROLE BADGES
   ============================================================ */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
}

.role-admin  { background: rgba(255,82,82,0.12); color: #ff8080; border: 1px solid rgba(255,82,82,0.22); }
.role-member { background: rgba(0,224,150,0.12); color: var(--ok); border: 1px solid rgba(0,224,150,0.22); }

/* ============================================================
   MEMBER DASHBOARD
   ============================================================ */
.member-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(18,34,68,0.8);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-xl);
  padding: 26px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.member-header::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric), transparent);
  opacity: 0.45;
}

.member-avatar {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--blue));
  display: grid;
  place-items: center;
  font-family: 'Oxanium', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 22px rgba(0,180,255,0.32);
}

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-card { text-align: center; }

.team-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--blue));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Oxanium', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 10px 28px rgba(0,180,255,0.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: rgba(10,20,44,0.95);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--muted2);
  padding: 28px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.site-footer strong { color: var(--white); font-family: 'Oxanium', sans-serif; font-size: 15px; }
.site-footer p { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* ============================================================
   SECTION ALT
   ============================================================ */
.section-alt {
  background: rgba(18,32,60,0.5);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 68px;
    background: rgba(12,22,48,0.97);
    backdrop-filter: blur(24px);
    padding: 16px 5vw;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid rgba(255,255,255,0.12);
    gap: 3px;
    z-index: 99;
  }

  .main-nav.open { display: flex; }
  .main-nav > a { width: 100%; padding: 10px 14px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .site-footer { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 40px; }
  .hero-content { padding: 60px 20px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .admin-main { padding: 18px 14px; }
  .member-header { flex-wrap: wrap; }
  .countdown-inline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; margin: 32px auto; }
  h1 { font-size: 30px; }
}
/* ============================================================
   EVENTS PAGE - NEW ELEMENTS
   ============================================================ */
.event-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.event-stat-item {
  background: var(--card-bg);
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
}

.event-stat-item strong {
  font-family: 'Oxanium', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--electric);
  line-height: 1;
}

.event-stat-item span { font-size: 13px; color: var(--muted2); }


.filter-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}

.filter-search-wrap .input { padding-left: 40px; }

/* Event card ribbon */
.event-card { position: relative; }

.event-ribbon {
  position: absolute;
  top: 14px;
  right: -1px;
  padding: 4px 12px 4px 10px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  border-radius: 6px 0 0 6px;
  z-index: 2;
}

.ribbon-open   { background: var(--ok);     color: #003322; }
.ribbon-closed { background: var(--muted);  color: #fff; }

/* Event meta rows */
.event-meta-list { margin: 10px 0 14px; display: flex; flex-direction: column; gap: 7px; flex-grow: 1; }

.event-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted2);
}

.event-meta-row svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--electric); }

/* Quota bar */
.quota-bar-wrap { margin: 12px 0 4px; }

.quota-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}


.quota-bar-fill {
  height: 6px;
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* Event img placeholder */
.event-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.event-img-icon { font-size: 40px; line-height: 1; }
.event-img-placeholder span { font-size: 12px; color: rgba(255,255,255,0.5); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   EVENT DETAIL PAGE
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
}

.breadcrumb a { color: var(--electric); }
.breadcrumb a:hover { text-decoration: underline; }

.event-detail-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 36px;
  align-items: start;
}

.event-detail-poster {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line2);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.event-detail-poster-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy2), var(--navy3));
  border-radius: var(--radius-lg);
  border: 1px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}

.event-info-box {
  background: var(--card-bg);
  border: 1px solid var(--line2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 16px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.event-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.event-info-row svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--electric);
  margin-top: 2px;
}

.event-info-row span.meta { display: block; margin-bottom: 2px; }
.event-info-row strong { display: block; font-size: 14px; color: var(--white); font-weight: 600; }

/* Detail countdown */
.detail-countdown-box {
  background: rgba(0,180,255,0.07);
  border: 1px solid rgba(0,180,255,0.18);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.detail-countdown-box small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--electric);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  opacity: 0.85;
}


/* Description */
.event-description {
  background: var(--card-bg);
  border: 1px solid var(--line2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}


.event-description h4 {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--electric);
  margin-bottom: 12px;
}

.event-description p { color: var(--text); line-height: 1.8; }

/* Quota section */
.quota-section {
  background: var(--card-bg);
  border: 1px solid var(--line2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.quota-section h4 { font-size: 14px; font-weight: 600; color: var(--white); }

/* CTA box */
.event-cta-box {
  background: rgba(0,180,255,0.06);
  border: 1px solid rgba(0,180,255,0.18);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}


.cta-registered, .cta-full { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Responsive event detail */
@media (max-width: 900px) {
  .event-detail-grid { grid-template-columns: 1fr; }
  .event-stats-bar   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .event-stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   COUNTDOWN - FINISHED & TIMESTAMP STATES
   ============================================================ */
.countdown-timestamp {
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.02em;
}

.countdown-finished {
  text-align: center;
  padding: 8px 0;
}

.countdown-done-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 214, 143, 0.12);
  border: 1px solid rgba(0, 214, 143, 0.25);
  color: var(--ok);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.countdown-done {
  color: var(--muted);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}

/* Detail countdown box update */
.detail-countdown-box .countdown-timestamp {
  opacity: 0.75;
  font-size: 11px;
}

/* Hero countdown timestamp */
.hero-countdown-box .countdown-timestamp {
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* ============================================================
   TYPING ANIMATION
   ============================================================ */
.hero-typing-wrap {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--muted2);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
}

.hero-typing-prefix { color: var(--muted2); }

.hero-typing-word {
  font-family: 'Oxanium', sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 3vw, 26px);
  color: var(--electric);
  transition: color 0.3s;
  min-width: 4ch;
  text-align: left;
}

.hero-typing-cursor {
  color: var(--electric);
  font-weight: 300;
  font-size: clamp(18px, 3vw, 26px);
  animation: cursorBlink 0.75s step-end infinite;
}

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

/* ============================================================
   LED STATUS INDICATOR
   ============================================================ */
.led-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.led-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.led-label {
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* LED animations */
@keyframes ledBlinkGreen {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #00e096, 0 0 12px #00e09655; }
  50%       { opacity: 0.4; box-shadow: 0 0 2px #00e096; }
}

@keyframes ledBlinkYellow {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #ffbb00, 0 0 12px #ffbb0055; }
  50%       { opacity: 0.4; box-shadow: 0 0 2px #ffbb00; }
}

@keyframes ledBlinkRed {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #ff4d4d, 0 0 12px #ff4d4d55; }
  50%       { opacity: 0.3; box-shadow: 0 0 2px #ff4d4d; }
}

.led-blink-green  { animation: ledBlinkGreen  1.4s ease-in-out infinite; }
.led-blink-yellow { animation: ledBlinkYellow 0.9s ease-in-out infinite; }
.led-blink-red    { animation: ledBlinkRed    0.5s ease-in-out infinite; }
.led-off          { opacity: 0.4; }

/* ============================================================
   HERO COUNTDOWN — nama event
   ============================================================ */
.hero-countdown-box small strong {
  font-family: 'Oxanium', sans-serif;
  font-size: 12px;
}

/* ============================================================
   TYPING ANIMATION
   ============================================================ */
.hero-typing {
  color: var(--electric);
  position: relative;
  transition: color 0.3s;
}

.hero-typing::after {
  content: '|';
  color: var(--electric);
  animation: blink-cursor 0.75s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   LED STATUS INDICATOR
   ============================================================ */
.led-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.led-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

/* LED Hijau - Open */
.led-dot.led-open {
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
  animation: led-pulse-green 1.8s ease-in-out infinite;
}

@keyframes led-pulse-green {
  0%, 100% { box-shadow: 0 0 4px var(--ok), 0 0 8px var(--ok); opacity: 1; }
  50%       { box-shadow: 0 0 8px var(--ok), 0 0 16px var(--ok); opacity: 0.75; }
}

/* LED Merah - Full/Closed */
.led-dot.led-full {
  background: var(--danger);
  box-shadow: 0 0 6px var(--danger);
  animation: led-pulse-red 1s ease-in-out infinite;
}

@keyframes led-pulse-red {
  0%, 100% { box-shadow: 0 0 4px var(--danger); opacity: 1; }
  50%       { box-shadow: 0 0 10px var(--danger); opacity: 0.7; }
}

/* LED Abu - Done/Closed */
.led-dot.led-done {
  background: var(--muted);
  box-shadow: 0 0 4px var(--muted);
  opacity: 0.6;
}

/* LED Kuning - Hampir Penuh (>75%) */
.led-dot.led-warn {
  background: var(--warn);
  box-shadow: 0 0 6px var(--warn);
  animation: led-pulse-warn 1.4s ease-in-out infinite;
}

@keyframes led-pulse-warn {
  0%, 100% { box-shadow: 0 0 4px var(--warn); opacity: 1; }
  50%       { box-shadow: 0 0 10px var(--warn); opacity: 0.7; }
}

/* ============================================================
   ACHIEVEMENT / BADGE SYSTEM
   ============================================================ */

/* Pills inline di header */
.achievement-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.achievement-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.badge-electric {
  background: rgba(0,200,245,0.15);
  color: var(--electric);
  border: 1px solid rgba(0,200,245,0.3);
  box-shadow: 0 0 10px rgba(0,200,245,0.15);
}

.badge-blue {
  background: rgba(77,140,255,0.15);
  color: #7aadff;
  border: 1px solid rgba(77,140,255,0.3);
}

.badge-gold {
  background: rgba(255,179,0,0.15);
  color: var(--warn);
  border: 1px solid rgba(255,179,0,0.3);
  box-shadow: 0 0 10px rgba(255,179,0,0.12);
}

.badge-green {
  background: rgba(0,214,143,0.15);
  color: var(--ok);
  border: 1px solid rgba(0,214,143,0.3);
}

/* Achievement section */
.achievement-section {
  background: var(--card-bg);
  border: 1px solid var(--line2);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-top: 8px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.achievement-section::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warn), transparent);
  opacity: 0.4;
}

/* Achievement grid */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.achievement-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line2);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

/* Unlocked state */
.achievement-card.unlocked {
  background: rgba(0,200,245,0.06);
  border-color: rgba(0,200,245,0.2);
}

.achievement-card.unlocked:hover {
  border-color: rgba(0,200,245,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Locked state */
.achievement-card.locked {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.07);
  opacity: 0.55;
  filter: grayscale(0.4);
}

.achievement-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line2);
}

.achievement-card.unlocked .achievement-icon {
  background: rgba(0,200,245,0.1);
  border-color: rgba(0,200,245,0.2);
  box-shadow: 0 0 16px rgba(0,200,245,0.1);
}

.achievement-info {
  flex: 1;
}

.achievement-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.achievement-info span {
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.achievement-status {
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
}

.unlocked-badge {
  background: rgba(0,214,143,0.12);
  color: var(--ok);
  border: 1px solid rgba(0,214,143,0.25);
}

.locked-badge {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid var(--line2);
}

/* Progress box */
.achievement-progress-box {
  background: rgba(0,200,245,0.04);
  border: 1px solid rgba(0,200,245,0.14);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 4px;
}

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

/* ============================================================
   TEAM PHOTO
   ============================================================ */
.team-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(0,200,245,0.3);
  box-shadow: 0 8px 28px rgba(0,180,255,0.2);
  transition: all 0.3s;
}

.team-photo:hover {
  border-color: var(--electric);
  box-shadow: 0 12px 36px rgba(0,180,255,0.35);
  transform: scale(1.05);
}

.team-card .team-avatar {
  margin-bottom: 0;
}