/* ==========================================================================
   LUI VISUAL — EVENT CREW ROSTER & TECHNICAL PLOTTING TERMINAL (/plot)
   Cyberpunk UI Theme matching luifierey.my.id & Lui Creative Suite
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-surface: #0e1422;
  --bg-surface-glass: rgba(14, 20, 34, 0.85);
  --bg-surface-elevated: #131b2e;
  --bg-input: #151f32;

  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.35);
  --neon-orange: #f59e0b;
  --neon-orange-glow: rgba(245, 158, 11, 0.25);
  --neon-green: #10b981;
  --neon-green-glow: rgba(16, 185, 129, 0.25);
  --neon-blue: #38bdf8;
  --neon-blue-glow: rgba(56, 189, 248, 0.25);
  --neon-purple: #a855f7;
  --neon-purple-glow: rgba(168, 85, 247, 0.25);
  --neon-red: #ef4444;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 240, 255, 0.3);
  --border-orange: rgba(245, 158, 11, 0.35);

  --font-logo: 'Orbitron', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Sleek Cyber */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Cyber Ambient Background */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  z-index: 0;
  animation: cyberGridDrift 90s linear infinite;
}

@keyframes cyberGridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 38px 38px; }
}

.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}

.bg-orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.14) 0%, rgba(0, 136, 255, 0.04) 45%, transparent 70%);
  top: -120px;
  right: -100px;
}

.bg-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.03) 45%, transparent 70%);
  bottom: 50px;
  left: -180px;
}

.bg-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  top: 45%;
  left: 55%;
}

/* Glassmorphism Utility */
.glassmorphism {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
}

/* Top HUD Navigation Bar */
.hud-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-group {
  display: flex;
  align-items: center;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transition: transform var(--transition-fast);
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-logo);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.brand-sub-author {
  color: var(--neon-orange);
  font-weight: 600;
}

/* Nav Actions & Dropdowns */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-dropdown-wrap {
  position: relative;
}

.tool-dropdown-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition-fast);
}

.tool-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.tool-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: #0e1628;
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65);
  display: none;
  z-index: 200;
}

.tool-dropdown-menu.show {
  display: block;
  animation: dropFade 0.15s ease-out;
}

@keyframes dropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--neon-cyan);
  padding: 6px 10px 4px;
  letter-spacing: 0.8px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 12px;
  transition: background var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(0, 240, 255, 0.08);
}

.dropdown-item i {
  color: var(--neon-cyan);
  width: 16px;
  text-align: center;
}

.dropdown-item-title {
  font-weight: 600;
}

.dropdown-item-desc {
  font-size: 10px;
  color: var(--text-dim);
}

/* Main Container */
.main-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px 60px;
}

/* Hero / Header Card */
.event-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.event-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-orange), transparent);
}

.event-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.event-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.cyber-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
}

.cyber-pill.live {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.cyber-pill.live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}

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

.cyber-pill.event {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--neon-cyan);
}

.cyber-pill.count {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-orange);
  color: var(--neon-orange);
}

.event-title {
  font-family: var(--font-logo);
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.event-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.event-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-meta-item i {
  color: var(--neon-cyan);
}

.event-meta-item strong {
  color: var(--text-main);
}

/* Quick Action Buttons Group */
.hero-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* Button Component Standards */
.cyber-btn {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.cyber-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.cyber-btn:active {
  transform: translateY(0);
}

.cyber-btn-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.15);
}

.cyber-btn-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #07090e;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.4);
}

.cyber-btn-cyan {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--border-accent);
  color: var(--neon-cyan);
  font-weight: 700;
}

.cyber-btn-cyan:hover {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #07090e;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.cyber-btn-orange {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--border-orange);
  color: var(--neon-orange);
}

.cyber-btn-orange:hover {
  background: var(--neon-orange);
  border-color: var(--neon-orange);
  color: #07090e;
}

/* Search, CLI & Control Bar */
.control-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 10px;
  flex: 1;
  min-width: 220px;
}

.search-box i {
  color: var(--neon-cyan);
  font-size: 13px;
}

.search-input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
  font-family: var(--font-sans);
}

.search-input::placeholder {
  color: var(--text-dim);
}

.view-toggle-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px;
}

.view-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.view-toggle-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--neon-cyan);
  border: 1px solid var(--border-accent);
}

/* Quick CLI Command Box */
.cli-box {
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.cli-prefix {
  color: var(--neon-cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.cli-input {
  background: none;
  border: none;
  outline: none;
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 12.5px;
  flex: 1;
}

.cli-input::placeholder {
  color: var(--text-dim);
  font-style: italic;
}

.cli-hint {
  color: var(--text-dim);
  font-size: 11px;
}

/* ==========================================================================
   VIEW 1: TERMINAL ASCII WHATSAPP ROSTER
   ========================================================================== */
.terminal-roster-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.55;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  overflow-x: auto;
}

.wa-line {
  display: flex;
  align-items: center;
  min-height: 22px;
  white-space: pre-wrap;
  word-break: break-word;
}

.wa-pipe {
  color: #475569;
  margin-right: 6px;
  user-select: none;
}

.wa-bracket {
  color: var(--neon-cyan);
  font-weight: 700;
}

.wa-pill-main {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--border-accent);
  color: #7dd3fc;
  padding: 1px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.wa-pill-bidang {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  padding: 2px 9px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.5px;
}

.wa-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--neon-cyan);
}

.wa-action-chips {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wa-chip-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.wa-chip-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.wa-chip-btn.copy:hover {
  color: var(--neon-cyan);
  border-color: var(--border-accent);
}

.wa-chip-btn.wa {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.3);
  background: rgba(37, 211, 102, 0.08);
}

.wa-chip-btn.wa:hover {
  background: #25d366;
  color: #07090e;
}

.wa-chip-btn.del:hover {
  color: var(--neon-red);
  border-color: rgba(239, 68, 68, 0.4);
}

.wa-label {
  color: var(--text-dim);
}

.wa-val {
  color: var(--text-main);
}

.wa-highlight {
  color: #fff;
  font-weight: 700;
}

.wa-sesi-title {
  color: var(--neon-orange);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.3px;
}

.wa-bullet {
  color: var(--neon-cyan);
  margin-right: 6px;
  font-weight: 700;
}

.wa-note-line {
  color: var(--text-dim);
  font-style: italic;
  font-size: 12px;
}

/* ==========================================================================
   VIEW 2: CYBER CARDS GRID
   ========================================================================== */
.cards-grid-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.division-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.division-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.12);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-size: 16px;
  flex-shrink: 0;
}

.card-name {
  font-family: var(--font-logo);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.card-pos {
  font-size: 11.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.card-pj-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
}

.card-pj-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.card-pj-value {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.card-sessions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  flex-grow: 1;
}

.session-box {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 8px 10px;
  border-left: 2px solid var(--neon-orange);
}

.session-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--neon-orange);
  margin-bottom: 4px;
}

.session-crew-list {
  list-style: none;
  padding: 0;
}

.session-crew-item {
  font-size: 12px;
  color: var(--text-main);
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-crew-item::before {
  content: '›';
  color: var(--neon-cyan);
  font-weight: 700;
}

.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.cyber-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cyber-modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.2s ease-out;
}

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

.cyber-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.modal-title {
  font-family: var(--font-logo);
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 17px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.label-accent-orange {
  color: var(--neon-orange);
  font-weight: 700;
}

.label-accent-cyan {
  color: var(--neon-cyan);
  font-weight: 700;
}

.btn-toggle-advanced {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.btn-toggle-advanced:hover {
  color: var(--neon-cyan);
}

.btn-toggle-advanced i {
  transition: transform var(--transition-fast);
}

.btn-toggle-advanced.active i {
  transform: rotate(90deg);
}

.advanced-fields-box {
  display: none;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
  animation: modalFadeIn 0.2s ease-out;
}

.advanced-fields-box.open {
  display: block;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-textarea {
  font-family: var(--font-mono);
  font-size: 12px;
  resize: vertical;
  line-height: 1.45;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.form-helper {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  background: rgba(0, 0, 0, 0.15);
}

/* Raw WA Text Preview Modal Box */
.wa-preview-box {
  background: #090e1a;
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #7dd3fc;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
  overflow-y: auto;
  user-select: all;
  line-height: 1.45;
}

/* ==========================================================================
   INLINE DIRECT EDITING IN TERMINAL VIEW
   ========================================================================== */
.inline-edit-field {
  display: inline-block;
  min-width: 32px;
  border-radius: 4px;
  padding: 1px 6px;
  margin: -1px 2px;
  cursor: text;
  outline: none;
  transition: all var(--transition-fast);
  border: 1px dashed transparent;
  position: relative;
}

html.inline-edit-active .inline-edit-field,
body.inline-edit-active .inline-edit-field {
  border-bottom: 1px dashed rgba(0, 240, 255, 0.35);
}

.inline-edit-field:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.5);
}

.inline-edit-field:focus {
  background: rgba(0, 240, 255, 0.18) !important;
  border: 1px solid var(--neon-cyan) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  color: #fff !important;
}

.inline-edit-field:empty::before {
  content: attr(data-placeholder);
  color: var(--text-dim);
  font-style: italic;
  font-weight: 400;
}

.wa-crew-item-row {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background var(--transition-fast);
  border-radius: 4px;
}

.wa-crew-item-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.wa-crew-del-btn {
  opacity: 0;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 1px 6px;
  font-size: 11px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  margin-left: 4px;
}

.wa-crew-item-row:hover .wa-crew-del-btn {
  opacity: 0.6;
}

.wa-crew-del-btn:hover {
  opacity: 1;
  color: var(--neon-red);
  background: rgba(239, 68, 68, 0.15);
}

.wa-add-crew-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
  border: 1px dashed rgba(0, 240, 255, 0.3);
  padding: 3px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 8px;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.wa-add-crew-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--neon-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.inline-mode-toggle {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-accent);
  background: rgba(0, 240, 255, 0.08);
  color: var(--neon-cyan);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.inline-mode-toggle.active {
  background: var(--neon-cyan);
  color: #07090e;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

.inline-mode-toggle:hover {
  transform: translateY(-1px);
}

/* Toast Notification */
.cyber-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0e1628;
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.35);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.cyber-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .nav-container { padding: 8px 12px; }
  .brand-sub { display: none; }
  .brand-title { font-size: 12px; }
  .main-wrapper { padding: 12px 10px 40px; }
  .event-hero-card { padding: 14px 12px; }
  .event-title { font-size: 16px; }
  .hero-action-buttons { flex-direction: column; align-items: stretch; }
  .hero-action-buttons .cyber-btn { justify-content: center; }
  .control-bar { flex-direction: column; align-items: stretch; }
  .view-toggle-group { justify-content: center; }
  .wa-section-header-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wa-action-chips { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .cards-grid-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 13px; }
  .terminal-roster-wrap { padding: 12px 8px; font-size: 12px; }
}
