/* ═══════════════════════════════════════════════════
   GMNI Universe · Main Stylesheet
   Theme: Deep Space · Marvel Universe Aesthetic
   Fonts: Bebas Neue (display) · Rajdhani (body) · Barlow Condensed (labels)
   ═══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --navy:       #050914;
  --navy-2:     #080f20;
  --navy-3:     #0d1630;
  --navy-card:  #0a1128;
  --red:        #C41E1E;
  --red-bright: #E53030;
  --red-glow:   rgba(196,30,30,0.4);
  --green:      #22c55e;
  --green-glow: rgba(34,197,94,0.35);
  --gold:       #D4AF37;
  --gold-light: #F0CF6A;
  --gold-glow:  rgba(212,175,55,0.35);
  --steel:      #8892B0;
  --steel-dim:  #4A5270;
  --white:      #E8EDF5;
  --white-dim:  #9BA3BA;
  --border:     rgba(255,255,255,0.06);
  --border-gold:rgba(212,175,55,0.2);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Rajdhani', sans-serif;
  --font-label:   'Barlow Condensed', sans-serif;

  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }

/* ── Base ── */
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Space Canvas ── */
#space-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Floating Orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196,30,30,0.12) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  bottom: 0; right: 200px;
  animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(36,99,235,0.08) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation-delay: -5s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(20px,-30px) scale(1.05); }
  66%       { transform: translate(-15px,20px) scale(0.95); }
}

/* ── Login / Register Wrapper ── */
.login-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

/* ── Login Card ── */
.login-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--red-glow),
    0 25px 60px rgba(0,0,0,0.7),
    0 0 80px rgba(196,30,30,0.05);
}

/* ── Top Accent Bar ── */
.card-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-bright), var(--gold), var(--red));
  background-size: 300% 100%;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 300% 0; }
  100% { background-position: -300% 0; }
}

/* ── Brand Block ── */
.brand-block {
  padding: 2.2rem 2rem 1rem;
  text-align: center;
}

.universe-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--red-glow));
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  gap: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: -4px;
}

.logo-universe {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  line-height: 1;
  margin-left: 0.05em;
  padding-bottom: 2px;
}

.powered-by {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--steel-dim);
  text-transform: uppercase;
}
.powered-by span { color: var(--red); }

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem 0;
}
.divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold));
}
.divider span:last-child {
  background: linear-gradient(90deg, var(--border-gold), transparent);
}
.divider small {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--steel-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Alert ── */
.alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(196,30,30,0.08);
  border: 1px solid rgba(196,30,30,0.25);
  border-left: 3px solid var(--red);
  border-radius: 2px;
  padding: 0.65rem 0.9rem;
  margin: 1rem 2rem 0;
  color: #ff7070;
  font-size: 0.85rem;
  font-family: var(--font-body);
}
.alert-success {
  background: rgba(22,163,74,0.08);
  border-color: rgba(22,163,74,0.25);
  border-left-color: #16A34A;
  color: #4ADE80;
}

/* ── Form ── */
form { padding: 1.2rem 2rem 0; }
#delete-form, 
#form-demote, 
#form-delete-dpd,
#form-delete-dpc,
#form-delete-kom,
#promote-admin-form,
#revoke-admin-form,
#toggle-form
  { 
    padding: 1.2rem 0 0;
  }

.field { margin-bottom: 1.2rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.field-row .field { margin-bottom: 0; }

.field label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--steel-dim);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.label-icon { color: var(--red); font-size: 0.7rem; }

.field input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}
.field input::placeholder { color: var(--steel-dim); }

.field select {
  width: 100%;
  padding: 13px 40px 13px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}
.field select option { background: #1a1a2e; color: var(--white); }

input[type="date"] { color: var(--steel-dim); }
input[type="date"].has-value { color: var(--white); }
input[type="date"]::-webkit-datetime-edit { color: inherit; }
input[type="date"]::-webkit-datetime-edit-fields-wrapper { color: inherit; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.5); cursor: pointer; }

/* ── Submit Button ── */
.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem;
  margin-top: 0.5rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: var(--font-label);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn-login::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-login:hover::before { transform: translateX(100%); }
.btn-login:hover {
  background: var(--red-bright);
  box-shadow: 0 6px 30px var(--red-glow);
  transform: translateY(-2px);
}
.btn-login:active { transform: translateY(0); }

/* ── Auth Switch ── */
.auth-switch {
  text-align: center;
  padding: 0.8rem 2rem 0;
  font-size: 0.82rem;
  color: var(--steel-dim);
  font-family: var(--font-label);
  letter-spacing: 0.05em;
}
.auth-switch a {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.auth-switch a:hover { color: var(--gold-light); }

/* ── Footer Tag (legacy) ── */
.footer-tag {
  text-align: center;
  padding: 1.2rem 2rem 1.8rem;
  font-size: 0.72rem;
  color: var(--steel-dim);
  letter-spacing: 0.05em;
  font-family: var(--font-label);
}
.footer-tag span { color: var(--red); }

/* ── Site Header (sticky) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Admin Bar ── */
.adminbar {
  background: #02040c;
  border-bottom: 1px solid rgba(196,30,30,0.2);
}
.adminbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 32px;
}
.adminbar-left { display: flex; align-items: center; gap: 12px; }
.adminbar-right { display: flex; align-items: center; }
.adminbar-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  border-radius: 4px;
}
.adminbar-role--admin       { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.adminbar-role--verifikator { background: rgba(234,179,8,0.12);  color: #facc15; border: 1px solid rgba(234,179,8,0.25); }
.adminbar-role--author      { background: rgba(34,197,94,0.12);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.adminbar-role--alumni      { background: rgba(156,163,175,0.12);color: #9ca3af; border: 1px solid rgba(156,163,175,0.25); }
.adminbar-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.adminbar-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.adminbar-link:hover { color: var(--white); }
.adminbar-link--dashboard:hover { color: var(--red); }
.adminbar-greeting {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}
.adminbar-greeting strong { color: rgba(255,255,255,0.55); font-weight: 500; }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-body {
  padding: 48px 0 40px;
  background: #05091a;
}
.footer-body .footer-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Brand */
.footer-brand-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo { width: 44px; height: 44px; object-fit: contain; }
.footer-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
}
.footer-brand-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--white-dim);
  margin-top: 2px;
  line-height: 1.3;
}

/* Nav */
.footer-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--white-dim);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--red); }

/* Social */
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-social:hover { color: var(--red); border-color: rgba(196,30,30,0.4); }

/* Copyright */
.footer-copy {
  background: #02040c;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 14px 0;
}
.footer-copy .footer-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}
.footer-copy strong { color: var(--red); }
.footer-copy-sep { color: rgba(255,255,255,0.15); }

@media (max-width: 700px) {
  .footer-body {
    padding: 36px 0 28px;
  }
  .footer-body .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand {
    display: flex;
    justify-content: center;
  }
  .footer-nav,
  .footer-social-wrap {
    text-align: center;
  }
  .footer-links {
    align-items: center;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-copy .footer-container {
    justify-content: center;
    gap: 6px;
  }
}

/* ── Navbar — hybrid: opacity/transform via --nav-p, layout via class ── */
.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  background: rgba(5, 9, 20, calc(0.92 + 0.05 * var(--nav-p, 0)));
  border-bottom: 1px solid var(--border-gold);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
  transition: height 0.3s ease;
}
.navbar--scrolled { height: 46px; }

/* Opacity & transform — GPU composited, no layout reflow */
.nav-logo {
  transform: scale(calc(1 - 0.18 * var(--nav-p, 0)));
  transform-origin: left center;
}
.nav-sub {
  opacity: calc(1 - var(--nav-p, 0));
  overflow: hidden;
  max-height: 20px;
  transition: max-height 0.3s ease;
}
.navbar--scrolled .nav-sub { max-height: 0; }

.nav-divider { opacity: calc(1 - var(--nav-p, 0)); transition: width 0.3s ease, margin 0.3s ease; }
.navbar--scrolled .nav-divider { width: 0; margin: 0; }

.user-info { opacity: calc(1 - var(--nav-p, 0)); overflow: hidden; max-width: 200px; transition: max-width 0.3s ease; }
.navbar--scrolled .user-info { max-width: 0; }

.nav-avatar {
  transform: scale(calc(1 - 0.18 * var(--nav-p, 0)));
  transition: border-color 0.2s;
}

/* Layout changes — one-time transition at threshold */
.nav-link { transition: color 0.2s ease, font-size 0.3s ease; }
.navbar--scrolled .nav-link { font-size: 0.75rem; }

.nav-right { transition: gap 0.3s ease; }
.navbar--scrolled .nav-right { gap: 0.5rem; }

.nav-dropdown-item { transition: color 0.15s ease; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.nav-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--red-glow));
}

.nav-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--white);
  line-height: 1;
  margin-top: 2px;
}

.nav-title-g,
.nav-title-w {
  font-size: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.nav-title-g { color: var(--red); }
.nav-title-w { color: var(--white); }

.nav-sub {
  display: block;
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
}

.nav-right {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 1rem;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label);
}

/* ── Nav Profile Dropdown ───────────────────────────────── */
.nav-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(196,30,30,0.2);
  color: var(--red);
  transition: border-color 0.2s;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar--pending  { border-color: rgba(230,126,34,0.5); }
.nav-avatar--rejected { border-color: rgba(248,113,113,0.5); }
.nav-profile:hover .nav-avatar { border-color: rgba(74,222,128,0.5); }

.nav-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.nav-avatar-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--navy);
  pointer-events: none;
}

/* ── Tentang nav link ────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 4px;
}
.nav-has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link--active { color: var(--red); }
.nav-link svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-has-dropdown:hover .nav-link svg { transform: rotate(180deg); }

/* ── Dropdown base ── */
.nav-dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% - 4px);
  background: #16162a;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: opacity 0.15s ease 0.15s, visibility 0s linear 0.2s;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 1px;
}
.nav-has-dropdown:hover .nav-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.15s ease, visibility 0s linear 0s;
}
/* ── Dropdown position modifiers ── */
.nav-dropdown--left  { left: 0;  min-width: 160px; padding: 4px; }
.nav-dropdown--right { right: 0; min-width: 160px; padding: 4px; }
.nav-dropdown-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 4px 0; }

.nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.12);
  margin: 0 12px;
  opacity: calc(1 - var(--nav-p, 0));
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.3s ease, margin 0.3s ease;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 7px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-dropdown-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-dropdown-item:hover { color: var(--red); background: transparent; }
.nav-dropdown-item.active { color: var(--red); }
.nav-dropdown-item--danger { color: rgba(248,113,113,0.8); }
.nav-dropdown-item--danger:hover { color: #f87171; background: transparent; }
.nav-dropdown-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }

.user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.user-name {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--steel);
  line-height: 1;
  margin-bottom: 2px;
}

.user-status {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  align-items: center;
}
.user-status--active   { color: #22C55E; }
.user-status--pending  { color: #F59E0B; }
.user-status--rejected { color: var(--red); }

.status-rejected-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.status-info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--steel);
  opacity: 0.7;
  transition: opacity .15s;
}
.status-info-icon:hover,
.status-info-icon:focus { opacity: 1; outline: none; }
.status-info-icon svg { width: 10px; height: 10px; }

.status-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #1e1e2e;
  border: 1px solid rgba(196,30,30,.4);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: #e0d0d0;
  line-height: 1.6;
  text-transform: none;
  white-space: normal;
  word-break: break-word;
  pointer-events: none;
  transition: opacity .2s, visibility .2s;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
/* Caret atas */
.status-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 6px;
  border: 6px solid transparent;
  border-bottom-color: rgba(196,30,30,.4);
}
.status-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 7px;
  border: 5px solid transparent;
  border-bottom-color: #1e1e2e;
  z-index: 1;
}

.status-info-icon:hover .status-tooltip,
.status-info-icon:focus .status-tooltip {
  visibility: visible;
  opacity: 1;
}

.user-dot {
  width: 7px; height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
.user-dot--active   { background: #22C55E; box-shadow: 0 0 8px rgba(34,197,94,0.7); }
.user-dot--pending  { background: #F59E0B; box-shadow: 0 0 8px rgba(245,158,11,0.7); }
.user-dot--rejected { background: var(--red); box-shadow: 0 0 8px rgba(196,30,30,0.7); }

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

.btn-logout {
  padding: 0.4rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  color: var(--gold);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-logout:hover {
  background: rgba(212,175,55,0.08);
  border-color: var(--gold);
}

/* ── Navbar Login Button ── */
.btn-nav-login {
  padding: 0.4rem 1.2rem;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 2px;
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-nav-login:hover {
  background: var(--red-bright);
  box-shadow: 0 0 16px var(--red-glow);
}
.navbar--scrolled .btn-nav-login {
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  transition: padding 0.25s ease, font-size 0.25s ease;
}

/* ── Navbar Mobile ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-mobile-overlay.is-open { opacity: 1; pointer-events: auto; }

.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100dvh;
  background: #070b15;
  border-left: 1px solid var(--border-gold);
  z-index: 100;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s ease 0.3s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-mobile-drawer.is-open { transform: translateX(0); visibility: visible; transition: transform 0.3s ease, visibility 0s ease 0s; }

.nav-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.nav-mobile-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.nav-mobile-close:hover { color: var(--white); }
.nav-mobile-close svg { width: 20px; height: 20px; }

.nav-mobile-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.nav-mobile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(196,30,30,0.4);
}
.nav-mobile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-mobile-username {
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
}
.nav-mobile-role {
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 2px;
  font-family: var(--font-label);
}
.nav-mobile-role--pending  { color: #e67e22; }
.nav-mobile-role--rejected { color: #f87171; }

.nav-mobile-links {
  flex: 1;
  padding: 6px 0;
}
.nav-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 20px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  background: none;
  border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile-link:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.nav-mobile-link.active { color: var(--red); }

.nav-mobile-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.nav-mobile-link--toggle.is-open .nav-mobile-chevron { transform: rotate(180deg); }

.nav-mobile-sub {
  display: none;
  padding: 0 0 6px 0;
}
.nav-mobile-sub.is-open { display: block; }
.nav-mobile-sublink {
  display: block;
  padding: 10px 20px 10px 20px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-left: 2px solid transparent;
  margin-left: 20px;
  transition: color 0.2s, border-color 0.2s;
}
.nav-mobile-sublink:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.2); }
.nav-mobile-sublink.active { color: var(--red); border-color: var(--red); }

.nav-mobile-footer {
  padding: 12px 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.nav-mobile-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 6px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile-action svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-mobile-action:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-mobile-action--danger { color: rgba(248,113,113,0.65); }
.nav-mobile-action--danger:hover { color: #f87171; background: rgba(248,113,113,0.07); }

.btn-nav-mobile-login {
  display: block;
  text-align: center;
  padding: 11px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: background 0.15s;
}
.btn-nav-mobile-login:hover { background: var(--red-bright); }

@media (max-width: 768px) {
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}

.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 120px 20px;
  width: 100%;
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-gold);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red-glow);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--red-glow); }
  50%       { opacity: 0.6; box-shadow: 0 0 16px var(--red-glow); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}
.ht-line1 {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 160px);
  letter-spacing: 4px;
  line-height: 0.85;
  color: var(--white);
  animation: heroReveal 1s ease both;
  animation-delay: 0.2s;
}
.ht-line2 {
  font-family: var(--font-display);
  font-size: clamp(50px, 9vw, 100px);
  letter-spacing: 8px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  animation: heroReveal 1s ease both;
  animation-delay: 0.35s;
}
.ht-line3 {
  font-family: var(--font-label);
  font-size: clamp(13px, 2vw, 18px);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 8px;
  animation: heroReveal 1s ease both;
  animation-delay: 0.5s;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
  animation: heroReveal 1s ease both;
  animation-delay: 0.6s;
}
.hero-desc strong { color: var(--white); }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: heroReveal 1s ease both;
  animation-delay: 0.7s;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 14px 28px;
  background: var(--red);
  color: white;
  border-radius: 2px;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-hero-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-hero-primary:hover::before { transform: translateX(100%); }
.btn-hero-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 0 30px var(--red-glow), 0 8px 24px rgba(196,30,30,0.4);
  transform: translateY(-2px);
}
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 28px;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}
.btn-hero-outline:hover {
  background: rgba(212,175,55,0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  animation: heroReveal 1s ease both;
  animation-delay: 0.85s;
}
.stat-item {
  display: flex;
  flex-direction: column;
  padding: 0 28px 0 0;
}
.stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
}
.stat-label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-gold);
  margin: 0 28px 0 0;
}

/* Hero Planet */
.hero-planet {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  z-index: 1;
  animation: planetFloat 12s ease-in-out infinite;
}
@keyframes planetFloat {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50%       { transform: translateY(calc(-50% - 20px)) rotate(2deg); }
}
.planet-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a2a6e, #0d1650, #050d30);
  box-shadow:
    inset -20px -20px 40px rgba(0,0,0,0.6),
    inset 10px 10px 30px rgba(36,99,235,0.15),
    0 0 60px rgba(36,99,235,0.2),
    0 0 120px rgba(36,99,235,0.1);
  overflow: hidden;
}
.planet-surface {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 40%, rgba(212,175,55,0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(196,30,30,0.06) 0%, transparent 40%);
  animation: planetRotate 20s linear infinite;
}
@keyframes planetRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.planet-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(72deg);
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 18px solid transparent;
  border-top-color: rgba(212,175,55,0.25);
  border-bottom-color: rgba(212,175,55,0.1);
  box-shadow: 0 0 30px rgba(212,175,55,0.1), inset 0 0 20px rgba(212,175,55,0.05);
  animation: ringPulse 4s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { border-top-color: rgba(212,175,55,0.25); }
  50%       { border-top-color: rgba(212,175,55,0.4); }
}
.planet-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,99,235,0.15) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 0.7; }
}

/* Orbits */
.orbit {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.1);
}
.orbit-1 {
  width: 310px; height: 310px;
  margin: -155px 0 0 -155px;
  animation: orbitSpin 8s linear infinite;
}
.orbit-2 {
  width: 400px; height: 400px;
  margin: -200px 0 0 -200px;
  animation: orbitSpin 14s linear infinite reverse;
}
.orbit-3 {
  width: 480px; height: 480px;
  margin: -240px 0 0 -240px;
  animation: orbitSpin 20s linear infinite;
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.satellite {
  position: absolute;
  top: 0; left: 50%;
  margin-top: -18px; margin-left: -18px;
  width: 36px; height: 36px;
  background: rgba(10,17,40,0.9);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(212,175,55,0.3);
}
.satellite img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  /* filter: brightness(0) invert(1); */
}
.orbit-1 .satellite { animation: orbitSpin 8s linear infinite reverse; }
.orbit-2 .satellite { animation: orbitSpin 14s linear infinite; }
.orbit-3 .satellite { animation: orbitSpin 20s linear infinite reverse; }

/* ── Hero — Responsive ── */
@media (max-width: 768px) {
  .hero-planet       { display: none; }
  .hero-content      { padding: 90px 20px 60px; text-align: center; }
  .hero-badge        { font-size: 10px; letter-spacing: 1px; padding: 7px 12px;
                       flex-wrap: wrap; justify-content: center; }
  .ht-line3          { letter-spacing: 3px; }
  .hero-desc         { font-size: 15px; max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions      { justify-content: center; }
  .btn-hero-primary,
  .btn-hero-outline  { width: 100%; justify-content: center; }
  .hero-stats        { justify-content: center; gap: 0; }
  .stat-item         { padding: 0 16px; align-items: center; }
  .stat-divider      { margin: 0; }
  .stat-num          { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero-stats    { gap: 0; }
  .stat-item     { padding: 0 10px; }
  .stat-divider  { height: 30px; }
  .ht-line3      { letter-spacing: 2px; font-size: 12px; }
}


/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: scrollIndReveal 1s ease both;
  animation-delay: 1.2s;
}
@keyframes scrollIndReveal {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.scroll-indicator span {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--steel-dim);
}

/* ═══════════════════════════════════════════════════════════
   REGISTER — Role Selection
═══════════════════════════════════════════════════════════ */
.register-select-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  z-index: 2;
}

.brand-block--center { text-align: center; margin-bottom: 12px; }
.universe-logo--center { justify-content: center; }
.auth-switch--center { text-align: center; margin-top: 28px; }
.footer-tag--center  { text-align: center; }

.reg-select-header { text-align: center; margin-bottom: 36px; }
.reg-select-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 4px;
  color: var(--white);
  margin: 0 0 6px;
}
.reg-select-sub {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--steel);
  text-transform: uppercase;
}

.reg-role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 620px;
}

.reg-role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 48px 32px 40px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  overflow: hidden;
}
.reg-role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: 0;
  transition: opacity .25s;
}
.reg-role-card:hover:not(.disabled) {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212,175,55,.15);
}
.reg-role-card:hover:not(.disabled)::before { opacity: 1; }

.reg-role-card.disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.role-icon {
  width: 68px; height: 68px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196,30,30,.1);
  border: 1px solid rgba(196,30,30,.25);
  border-radius: 50%;
  color: var(--red);
}
.role-icon svg { width: 32px; height: 32px; }

.role-label {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 4px;
  color: var(--white);
}
.role-desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--steel);
  line-height: 1.6;
  flex: 1;
  max-width: 200px;
}
.role-arrow {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red);
  border-radius: 50%;
  color: #fff;
  margin-top: 4px;
  transition: background .2s;
}
.role-arrow svg { width: 18px; height: 18px; }
.reg-role-card:hover:not(.disabled) .role-arrow { background: var(--gold); }

.role-badge-soon {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--steel-dim);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}

@media (max-width: 520px) {
  .reg-role-grid        { grid-template-columns: 1fr; max-width: 340px; }
  .register-select-wrapper { padding-top: 36px; padding-bottom: 40px; }
  .reg-select-title     { font-size: 24px; letter-spacing: 2px; }
  .reg-role-card        { padding: 32px 24px 28px; }
}

/* ── Prevent iOS auto-zoom on focus (triggered when font-size < 16px) ── */
@media (max-width: 768px) {
  .field input,
  .field select,
  .field textarea,
  .cs-search { font-size: 16px; }
}

/* ── Login / Register — small screen spacing ── */
@media (max-width: 400px) {
  .login-card form,
  .login-card .divider { padding-left: 1.2rem; padding-right: 1.2rem; }
  .login-card .alert   { margin-left: 1.2rem; margin-right: 1.2rem; }
  .auth-switch,
  .footer-tag          { padding-left: 1rem; padding-right: 1rem; }
  .brand-block         { padding-left: 1.2rem; padding-right: 1.2rem; }
}


/* ═══════════════════════════════════════════════════════════
   REGISTER KADER — Multi-step form
═══════════════════════════════════════════════════════════ */
.reg-kader-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 60px;
  position: relative;
  z-index: 2;
}

.reg-kader-header {
  width: 100%;
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--steel);
  text-decoration: none;
  transition: color .2s;
}
.btn-back svg { width: 16px; height: 16px; }
.btn-back:hover { color: var(--gold); }

.reg-kader-subtitle {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--steel-dim);
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  margin: 0 0 28px;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity .2s;
}
.step-dot:hover .step-num { opacity: .8; }
.step-num {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border);
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--steel-dim);
  background: var(--navy-card);
  transition: all .3s;
}
.step-label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--steel-dim);
  transition: color .3s;
}
.step-dot.active .step-num {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}
.step-dot.active .step-label { color: var(--gold); }
.step-dot.done .step-num {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.step-dot.done .step-label { color: var(--steel); }
.step-line {
  width: 80px;
  height: 1px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 22px;
}

/* Form wrapper */
#form-kader {
  width: 100%;
  max-width: 960px;
  padding: 0;  /* override global form padding — form-step handles its own */
}

/* Form card */
.form-step {
  display: none;
  width: 100%;
  max-width: 960px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 40px;
  animation: fadeUp .35s ease both;
}
.form-step.active { display: block; }

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

.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--white);
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.btn-prev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--steel);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
}
.btn-prev svg { width: 16px; height: 16px; }
.btn-prev:hover { border-color: var(--steel); color: var(--white); }

.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, #a01515 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s;
}
.btn-next svg { width: 16px; height: 16px; }
.btn-next:hover {
  background: linear-gradient(135deg, var(--red-bright) 0%, var(--red) 100%);
  box-shadow: 0 4px 20px var(--red-glow);
  transform: translateY(-1px);
}

.input-error { border-color: var(--red) !important; box-shadow: 0 0 0 2px var(--red-glow) !important; }

@media (max-width: 780px) {
  .reg-kader-wrapper  { padding-top: 24px; padding-left: 12px; padding-right: 12px; }
  .form-step          { padding: 24px 20px; }
  .field-row          { grid-template-columns: 1fr; }
  .step-line          { width: 40px; }
  .reg-kader-header   { justify-content: space-between; }
  .reg-kader-subtitle { margin-bottom: 18px; }
  #reg-crop-container { max-height: 220px; }
  .crop-modal-box     { padding: 16px; }
  /* Tombol step — lebih kompak, tetap inline */
  .btn-next           { padding: 10px 18px; letter-spacing: 1px; }
  .btn-prev           { padding: 10px 14px; letter-spacing: 1px; }
}

@media (max-width: 420px) {
  .step-line  { width: 20px; margin: 0 4px; }
  .step-label { font-size: 10px; letter-spacing: 0; }
  .step-num   { width: 30px; height: 30px; font-size: 14px; }
  .reg-kader-header .brand-logo { height: 36px; }
  .reg-kader-header .logo-text  { font-size: 1.8rem; }
}


/* ═══════════════════════════════════════════════════════════
   CUSTOM SEARCHABLE SELECT
═══════════════════════════════════════════════════════════ */
.cs-wrapper {
  position: relative;
  width: 100%;
}
.cs-display {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--steel-dim);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  -webkit-user-select: none;
  user-select: none;
}
.cs-display::after {
  content: '▾';
  margin-left: auto;
  font-size: 12px;
  color: var(--steel-dim);
  transition: transform .2s;
}
.cs-wrapper.cs-open .cs-display::after { transform: rotate(180deg); }
.cs-wrapper:not(.cs-disabled) .cs-display:hover { border-color: var(--steel); }
.cs-display.selected { color: var(--white); }
.cs-wrapper.cs-disabled .cs-display {
  opacity: .4;
  cursor: not-allowed;
}

.cs-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--navy-card);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  z-index: 200;
  overflow: hidden;
}
.cs-panel.open { display: block; }

.cs-search {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,.05);
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--white);
  outline: none;
  box-sizing: border-box;
}
.cs-search::placeholder { color: var(--steel-dim); }

.cs-list {
  list-style: none;
  margin: 0; padding: 4px 0;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.cs-list::-webkit-scrollbar { width: 4px; }
.cs-list::-webkit-scrollbar-track { background: transparent; }
.cs-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.cs-list li {
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--steel);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cs-list li:hover { background: rgba(212,175,55,.08); color: var(--white); }
.cs-list .cs-empty { color: var(--steel-dim); cursor: default; font-style: italic; }


/* ═══════════════════════════════════════════════════════════
   FILE UPLOAD
═══════════════════════════════════════════════════════════ */
.file-upload-area {
  display: flex;
  flex-direction: column;
}
.file-upload-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,.02);
  border: 1px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--steel);
  transition: border-color .2s, color .2s;
}
.file-upload-label:hover { border-color: var(--gold); color: var(--gold); }
.file-upload-area.drag-over .file-upload-label {
  border-color: var(--gold);
  background: rgba(212,175,55,0.06);
  color: var(--gold);
}
.file-upload-area.upload-error .file-upload-label {
  border-color: var(--red) !important;
  color: var(--red) !important;
}
.file-upload-label svg { width: 22px; height: 22px; flex-shrink: 0; }
.file-input { display: none; }
.file-clear-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 10px;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--steel);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  align-self: flex-start;
}
.file-clear-btn:hover { border-color: var(--red); color: var(--red); }
.file-clear-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.field-hint {
  display: block;
  font-size: 12px;
  color: var(--steel-dim);
  margin-top: 6px;
}
.file-clear-btn {
  display: none; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.12); background: none;
  color: rgba(255,255,255,0.4); cursor: pointer;
  font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.06em;
  transition: color 0.15s, border-color 0.15s; align-self: flex-start;
}
.file-clear-btn.is-visible { display: inline-flex; }
.file-clear-btn svg { width: 11px; height: 11px; flex-shrink: 0; }
.file-clear-btn:hover { color: #f87171; border-color: rgba(248,113,113,0.4); }
.file-preview {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
}
.file-preview.hidden { display: none; }

/* ── Crop Modal (register) ── */
.crop-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
}
.crop-modal-overlay.is-hidden { display: none; }
.crop-modal-box {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 24px;
  width: 92%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
}
.crop-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.crop-modal-header h3 { margin: 0; }
.crop-modal-box h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem; letter-spacing: 0.08em; color: #fff;
}
.crop-modal-close {
  background: none; border: none; cursor: pointer; padding: 4px;
  color: rgba(255,255,255,0.5); line-height: 1; flex-shrink: 0;
}
.crop-modal-close:hover { color: #fff; }
.crop-modal-close svg { width: 18px; height: 18px; display: block; }
#reg-crop-container { width: 100%; max-height: 340px; overflow: hidden; border-radius: 6px; }
#reg-crop-container img { max-width: 100%; display: block; }
.crop-modal-actions { margin-top: 16px; display: flex; gap: 10px; justify-content: flex-end; }
.crop-modal-actions .btn-cancel {
  padding: 5px 14px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.15); background: transparent;
  color: rgba(255,255,255,0.5); font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; letter-spacing: 0.08em; cursor: pointer; transition: color 0.15s;
}
.crop-modal-actions .btn-cancel:hover { color: #fff; }
.crop-modal-actions .btn-approve {
  padding: 5px 14px; border-radius: 5px; border: none;
  background: rgba(22,163,74,0.15); color: #4ade80;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; letter-spacing: 0.08em; cursor: pointer; transition: background 0.15s;
}
.crop-modal-actions .btn-approve:hover { background: rgba(22,163,74,0.3); }


/* ═══════════════════════════════════════════════════════════
   CUSTOM CHECKBOX
═══════════════════════════════════════════════════════════ */
.pernyataan-card {
  padding: 20px 24px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s;
}
.pernyataan-card:has(input:checked) {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.05);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 2px solid var(--steel-dim);
  border-radius: 5px;
  background: transparent;
  transition: all .2s;
  position: relative;
  margin-top: 1px;
}
.checkbox-label:hover .checkbox-custom { border-color: var(--gold); }
.checkbox-label input:checked + .checkbox-custom {
  background: #16a34a;
  border-color: #16a34a;
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 3px; left: 6px;
  width: 6px; height: 10px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.checkbox-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--steel);
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-transform: none;
  margin-bottom: 0;
}

/* Override label inheritance untuk checkbox */
.field .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  margin-bottom: 0;
}

/* Fix icon ukuran di dalam step-actions btn-login */
.step-actions .btn-login {
  width: auto;
  padding: 12px 28px;
  margin-top: 0;
}
.step-actions .btn-login svg,
.step-actions .btn-next svg,
.step-actions .btn-prev svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM MODAL POPUP
═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--navy-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: translateY(16px);
  transition: transform .25s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196,30,30,.12);
  border: 1px solid rgba(196,30,30,.3);
  border-radius: 50%;
  margin: 0 auto 20px;
  color: var(--red);
}
.modal-icon svg { width: 26px; height: 26px; }
.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--white);
  margin: 0 0 10px;
}
.modal-message {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--steel);
  line-height: 1.6;
  margin: 0 0 28px;
}
.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 32px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background .2s;
}
.modal-btn:hover { background: var(--red-bright); }

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATION
═══════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: all;
  width: 340px;
  background: var(--navy-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  transform: translateX(110%);
  opacity: 0;
  transition: transform .3s cubic-bezier(.34,1.2,.64,1), opacity .3s ease;
}
.toast.toast-enter { transform: translateX(110%); opacity: 0; }
.toast.toast-visible { transform: translateX(0); opacity: 1; }
.toast.toast-exit { transform: translateX(110%); opacity: 0; }

/* ── Error variant (default) ── */
.toast--error {
  border: 1px solid rgba(196,30,30,.35);
  border-left: 3px solid var(--red);
}
.toast--error .toast-icon {
  background: rgba(196,30,30,.12);
  color: var(--red);
}
.toast--error .toast-item svg { color: var(--red); }
.toast--error .toast-progress { background: rgba(196,30,30,.15); }
.toast--error .toast-bar { background: var(--red); }

/* ── Success variant ── */
.toast--success {
  border: 1px solid rgba(34,197,94,.3);
  border-left: 3px solid var(--green);
}
.toast--success .toast-icon {
  background: rgba(34,197,94,.12);
  color: var(--green);
}
.toast--success .toast-item svg { color: var(--green); }
.toast--success .toast-progress { background: rgba(34,197,94,.15); }
.toast--success .toast-bar { background: var(--green); }

.toast-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
}
.toast-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.toast-icon svg { width: 14px; height: 14px; }
.toast-title {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--white);
  line-height: 1.35;
}
.toast-close {
  background: none;
  border: none;
  color: var(--steel-dim);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.toast-close:hover { color: var(--white); }
.toast-close svg { width: 14px; height: 14px; }

.toast-list {
  list-style: none;
  margin: 0;
  padding: 0 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.toast-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--white-dim);
}
.toast-item svg {
  flex-shrink: 0;
  width: 14px; height: 14px;
}

.toast-progress {
  height: 2px;
}
.toast-bar {
  height: 100%;
  width: 100%;
}

/* ── Password Rules & Match Hint ── */
.pw-rules {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.pw-rules li {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--steel-dim);
  padding-left: 1.2em;
  position: relative;
  transition: color 0.2s;
}
.pw-rules li::before {
  content: '○';
  position: absolute;
  left: 0;
  font-size: 0.65rem;
  line-height: 1.5;
}
.pw-rules li.valid {
  color: #4caf81;
}
.pw-rules li.valid::before {
  content: '✓';
}
.pw-rules li.invalid {
  color: var(--red-bright);
}
.pw-rules li.invalid::before {
  content: '✗';
}
.pw-match-hint {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin: 6px 0 0;
  min-height: 1.2em;
  transition: color 0.2s;
}
.pw-match-hint.match   { color: #4caf81; }
.pw-match-hint.mismatch { color: var(--red-bright); }


@media (max-width: 780px) {
  .pernyataan-card { padding: 14px 16px; }
  .checkbox-label  { gap: 12px; }
}

@media (max-width: 600px) {
  .modal-overlay { padding: 16px; align-items: flex-end; }
  .modal-box { padding: 24px 20px 20px; width: 100%; border-radius: 16px 16px 12px 12px; }
}

/* Profile page styles moved to profile.css */
