:root {
  --bg-color: #05060a;
  --text-main: #d0e8ff;
  --neon-gold: #ffdf00;
  --neon-red: #ff1a55;
  --neon-blue: #00e5ff;
  --neon-green: #00ff77;
  --hp-red: #ff3366;
  --border-width: 1px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  line-height: 1.6;
  overflow: hidden !important;
  /* Prevent native scroll */
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

/* Subtle Scanlines */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(0deg,
      rgba(0, 10, 20, 0.1),
      rgba(0, 10, 20, 0.1) 1px,
      transparent 1px,
      transparent 2px);
  pointer-events: none !important;
  z-index: 9999;
}

.flex-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
}

.flex-1 {
  flex: 1 !important;
}

.gap-5 { gap: 5px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }

.lineup-stage-card {
  background: rgba(0, 5, 15, 0.4);
  border: 1px solid rgba(0, 229, 255, 0.1);
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 4px;
}

.lineup-stage-header {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  padding-bottom: 10px;
}

.lineup-stage-title {
  font-size: 12px;
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
  margin-bottom: 5px;
}

.lineup-slot-item {
  border-left: 2px solid var(--neon-blue);
  background: rgba(0, 229, 255, 0.03);
  margin-bottom: 10px;
  padding: 8px 12px;
  position: relative;
}

.lineup-slot-time {
  font-size: 8px;
  color: var(--neon-red);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.lineup-dj-row {
  font-size: 11px;
  color: #fff;
  margin-bottom: 5px;
}

.lineup-dj-name {
  cursor: pointer;
  transition: color 0.2s;
}
.lineup-dj-name:hover {
  color: var(--neon-blue);
}

.lineup-b2b-divider {
  font-size: 6px;
  color: var(--neon-gold);
  margin: 0 8px;
  opacity: 0.6;
}

.lineup-compact-edit {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.lineup-slot-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

#app {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden !important;
}

.view {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  /* Prevent view-level scroll, slides handle it */
  transition: opacity 0.4s ease;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.view::-webkit-scrollbar {
  display: none;
}

.hidden {
  display: none !important;
}

.view.hidden {
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

/* Active view should be visible but behind navigation (10) */
.view.active {
  opacity: 1;
  z-index: 10;
  display: block;
  overflow: clip;
}

/* All modals MUST be top-most (above header 5000 and nav 1500) */
.view[id^="modal-"] {
  z-index: 8000 !important;
}


/* Modals should be above everything else (header is 5000, side-nav is 1500) */



/* clip: no scrollbar, but allows 3D peek */

#view-main {
  overflow: clip !important;
}

/* Typography & Effects */
h1,
h2,
h3 {
  font-weight: normal;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blink {
  animation: blink 1.5s infinite step-end;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

#screensaver-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.title-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  /* float above the canvas */
}

/* Solid backdrop behind the login form — fighters are hidden under it */
.login-panel {
  background: rgb(4, 5, 12);
  /* fully opaque — no fighters visible through it */
  border: 1px solid rgba(0, 229, 255, 0.18);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 229, 255, 0.06);
  padding: 30px 24px;
  width: min(440px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

.subtitle {
  font-size: 10px;
  color: var(--neon-blue);
  letter-spacing: 2px;
  margin-top: 20px;
  margin-bottom: 30px;
  line-height: 1.5;
  text-shadow: 0 0 5px var(--neon-blue);
}

.logo-text {
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red), 0 0 30px var(--neon-red);
  margin-bottom: 40px;
  letter-spacing: 3px;
}

/* cyber minimalistic inputs */
.hp-border {
  border: 1px solid var(--neon-blue);
  background: rgba(0, 20, 40, 0.4);
  padding: 10px;
  box-shadow: inset 0 0 5px rgba(0, 229, 255, 0.1), 0 0 5px rgba(0, 229, 255, 0.2);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hp-border:focus-within,
.hp-border:focus {
  border-color: var(--neon-gold);
  box-shadow: inset 0 0 8px rgba(255, 223, 0, 0.2), 0 0 8px rgba(255, 223, 0, 0.4);
}

input,
select {
  font-family: inherit;
  font-size: 10px;
  color: #fff;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
}

/* Hide spin buttons */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

select option {
  background: var(--bg-color);
  color: var(--neon-blue);
}

/* Buttons minimalist neon */
.arcade-btn {
  font-family: inherit;
  font-size: 11px;
  background: transparent;
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue);
  padding: 15px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  text-transform: uppercase;
  width: 100%;
  letter-spacing: 1.5px;
  box-shadow: 0 0 5px rgba(0, 229, 255, 0.2), inset 0 0 5px rgba(0, 229, 255, 0.1);
  transition: all 0.2s ease-in-out;
}

.arcade-btn:hover,
.arcade-btn:active {
  background: rgba(0, 229, 255, 0.2);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5), inset 0 0 10px rgba(0, 229, 255, 0.3);
  text-shadow: 0 0 5px #fff;
}

.arcade-btn.alt {
  color: var(--neon-gold);
  border-color: var(--neon-gold);
  box-shadow: 0 0 5px rgba(255, 223, 0, 0.2);
}

.arcade-btn.alt:hover,
.arcade-btn.alt:active {
  background: rgba(255, 223, 0, 0.2);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 223, 0, 0.5);
}

.arcade-btn.combo {
  color: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 5px rgba(0, 255, 119, 0.2);
}

.arcade-btn.combo:hover,
.arcade-btn.combo:active {
  background: rgba(0, 255, 119, 0.2);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 255, 119, 0.5);
}

.arcade-btn.fatal {
  color: var(--neon-red);
  border-color: var(--neon-red);
  animation: pulse 2.5s infinite;
  box-shadow: 0 0 5px rgba(255, 26, 85, 0.2);
}

.arcade-btn.fatal:hover,
.arcade-btn.fatal:active {
  background: rgba(255, 26, 85, 0.2);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 26, 85, 0.5);
}

.arcade-btn.small-btn {
  padding: 9px;
  font-size: 8px;
  width: auto;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    box-shadow: 0 0 5px rgba(255, 26, 85, 0.3);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 26, 85, 0.7);
  }

  100% {
    opacity: 0.8;
    box-shadow: 0 0 5px rgba(255, 26, 85, 0.3);
  }
}

/* Layout Utilities */
.mt-xs {
  margin-top: 5px;
}

.mt-sm {
  margin-top: 6px;
}

.mt-md {
  margin-top: 12px;
}

.mb-xs {
  margin-bottom: 5px;
}

.mb-sm {
  margin-bottom: 10px;
}

.ml-xs {
  margin-left: 10px;
}

.full-w {
  width: 100%;
}

.flex-row {
  display: flex;
  align-items: center;
}

.flex-1 {
  flex: 1;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gap-10 {
  gap: 10px;
}

.gap-8 {
  gap: 8px;
}

.hidden {
  display: none !important;
}

/* Kill all scrollbars everywhere */
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
}

/* App Header */
.app-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: rgba(0, 10, 30, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: env(safe-area-inset-top) 15px 0;
  height: calc(50px + env(safe-area-inset-top));
  border-bottom: 2px solid rgba(0, 229, 255, 0.3);
  z-index: 5000;
  backdrop-filter: blur(10px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

#header-icon-canvas {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
}

.brand-text {
  color: #f8f8f8;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255,255,255,0.6), 0 0 15px rgba(255,255,255,0.3);
  position: relative;
  text-transform: uppercase;
}

.glitch-pulse {
  animation: brand-glow 4s infinite alternate;
}

@keyframes brand-glow {
  0% { text-shadow: 0 0 5px rgba(255,255,255,0.4); opacity: 0.9; }
  100% { text-shadow: 0 0 12px rgba(255,255,255,0.8), 0 0 20px rgba(0, 229, 255, 0.4); opacity: 1; }
}

.user-header-tag {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--neon-gold);
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 223, 0, 0.4);
  transition: all 0.2s;
  text-transform: lowercase;
}

.side-nav {
  position: fixed;
  left: 15px;
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1500;
  perspective: 1000px;
}

@media (max-width: 1000px) {
  .side-nav { display: none; }
}

.nav-item {
  background: #050a15;
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: rgba(0, 229, 255, 0.7);
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 185px;
  min-height: 48px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    6px 6px 0 rgba(0, 0, 0, 0.9),
    inset 2px 2px 0 rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  transform: rotateY(15deg);
  font-family: inherit;
  white-space: nowrap;
}

.nav-item:hover {
  color: #fff;
  border-color: #fff;
  transform: rotateY(5deg) scale(1.05) translateX(5px);
  box-shadow: 
    8px 8px 15px rgba(0, 229, 255, 0.3),
    inset 1px 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  color: #fff;
  border-color: #fff;
  transform: rotateY(5deg) scale(1.05) translateX(5px);
  box-shadow: 
    0 0 20px rgba(0, 229, 255, 0.4),
    inset 1px 1px 0 rgba(255, 255, 255, 0.1);
  font-weight: bold;
}

.countdown-labels {
  display: flex;
  justify-content: space-around;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
  letter-spacing: 1px;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.large-timer {
  font-size: 32px !important;
  color: var(--neon-red);
  text-shadow: 0 0 15px var(--neon-red);
  text-align: center;
  margin: 8px 0;
  font-family: 'Press Start 2P', cursive;
}

.countdown-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.nav-label {
  font-size: 9px;
  letter-spacing: 1px;
}

.conn-dropdown-panel {
  position: absolute;
  top: 52px;
  right: 10px;
  z-index: 2000;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

/* Conversation/Chat bubble arrow */
.conn-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 15px;
  width: 12px;
  height: 12px;
  background: #050a15;
  border-left: 1px solid rgba(0, 229, 255, 0.4);
  border-top: 1px solid rgba(0, 229, 255, 0.4);
  transform: rotate(45deg);
  z-index: 1;
}

.arcade-card.solid-bg {
  background: #050a15 !important; /* Total opaque kill of messy background */
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 2;
}

.dropdown-header {
  padding: 10px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.05);
}

.arcade-btn.danger {
  color: var(--neon-red);
  border-color: var(--neon-red);
  box-shadow: 0 0 5px rgba(255, 26, 85, 0.2);
}

.arcade-btn.danger:hover {
  background: rgba(255, 26, 85, 0.2);
  box-shadow: 0 0 15px rgba(255, 26, 85, 0.5);
}

.p1 {
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
}

#current-user {
  color: var(--neon-gold);
  font-size: 10px;
  text-shadow: 0 0 5px rgba(255, 223, 0, 0.5);
  margin-left: 5px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--neon-red);
  font-family: inherit;
  font-size: 8px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: text-shadow 0.2s;
}

.icon-btn:hover {
  text-shadow: 0 0 8px var(--neon-red);
}

/* Swiper — core is simple & responsive, works on all screen sizes */
.swipe-container {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: calc(100% - 50px - env(safe-area-inset-top));
  overflow: hidden;
  /* clip slides, no scrollbar */
}

.swipe-track {
  display: flex;
  width: calc(var(--total-slides, 7) * 100%);
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.instance-slide {
  width: calc(100% / var(--total-slides, 7));
  height: 100%;
  padding: 20px 20px 150px 20px; /* Large bottom padding for overlay safety */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.instance-slide::-webkit-scrollbar {
  display: none;
}

/* Instance Styling */
.stage-title {
  color: var(--text-main);
  text-align: center;
  font-size: 12px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  padding-bottom: 12px;
  box-shadow: 0 4px 5px -5px rgba(0, 229, 255, 0.5);
  margin-bottom: 15px;
}

.panel {
  background: rgba(0, 10, 25, 0.5);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 12px;
  position: relative;
  border-radius: 2px;
}

.panel h3 {
  font-size: 8px;
  color: rgba(0, 229, 255, 0.8);
  margin-bottom: 15px;
  letter-spacing: 1.5px;
}

/* Roster */
.roster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fighter-badge {
  background: rgba(255, 223, 0, 0.05);
  border: 1px solid rgba(255, 223, 0, 0.4);
  color: var(--neon-gold);
  padding: 6px 10px;
  font-size: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 5px rgba(255, 223, 0, 0.1);
}

.fighter-badge .del {
  color: var(--hp-red);
  cursor: pointer;
  font-size: 9px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.fighter-badge .del:hover {
  opacity: 1;
  text-shadow: 0 0 5px var(--hp-red);
}

/* Checkboxes */
.cb-title {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.chk-label {
  display: flex;
  align-items: center;
  font-size: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 229, 255, 0.3);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
}

.chk-label input {
  display: none;
}

/* Hide default checkbox */
.chk-label:has(input:checked),
.radio-label:has(input:checked) {
  border-color: var(--neon-blue);
  background: rgba(0, 229, 255, 0.15);
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.radio-label {
  display: flex;
  align-items: center;
  font-size: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.3);
  /* Inactive on start */
  transition: all 0.2s;
}

.radio-label input {
  display: none;
}

.radio-label:hover {
  border-color: rgba(0, 229, 255, 0.5);
  color: rgba(255, 255, 255, 0.6);
}

/* Battle Log */
.log-entry {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-entry .amt {
  color: var(--hp-red);
  font-weight: normal;
  text-shadow: 0 0 4px rgba(255, 51, 102, 0.4);
}

.log-entry .del-exp {
  color: rgba(255, 255, 255, 0.3);
  font-size: 8px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}

.log-entry .del-exp:hover {
  color: var(--hp-red);
}

/* Nav Dots */
.nav-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 15px;
  z-index: 20;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  pointer-events: auto;
}

.dot.active {
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
  transform: scale(1.2);
}

.error-text {
  color: var(--hp-red);
  text-shadow: 0 0 5px var(--hp-red);
  text-align: center;
}

/* Animations */
@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
  }
}

.shake {
  animation: shake 0.3s;
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Animations for new elements */
@keyframes flashGreen {
  0% {
    background: rgba(0, 255, 119, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 119, 0.8);
  }

  100% {
    background: rgba(255, 223, 0, 0.05);
    box-shadow: 0 0 5px rgba(255, 223, 0, 0.1);
  }
}

.flash-green {
  animation: flashGreen 1.5s ease-out;
}

/* --- ROUND 2: CALENDAR & TASKS --- */

.countdown-panel {
  text-align: center;
  border: 1px solid var(--neon-red);
  box-shadow: 0 0 15px rgba(255, 26, 85, 0.2);
}

.large-timer {
  font-size: 24px;
  color: var(--neon-red);
  font-family: 'Press Start 2P', cursive;
  margin: 15px 0;
  letter-spacing: 2px;
  text-shadow: 0 0 8px var(--neon-red);
}

.google-btn {
  background: #4285F4;
  border-color: #ffffff;
  font-size: 8px;
  margin-top: 10px;
}

.google-btn:hover {
  background: #357ae8;
}

.task-item {
  transition: all 0.3s ease;
}

.task-item.completed {
  border-color: var(--neon-green);
  background: rgba(0, 255, 119, 0.05);
}

.task-item.completed div {
  text-decoration: line-through;
  opacity: 0.6;
}

.event-list {
  max-height: 150px;
  overflow-y: auto;
}

.text-muted {
  color: #666;
  font-size: 7px;
}

.glitch-text {
  position: relative;
}

/* Custom Checkbox for Arcade look in Tasks */
.task-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  appearance: none;
  border: 1px solid var(--neon-blue);
  background: rgba(0, 229, 255, 0.1);
  cursor: pointer;
  display: inline-block !important;
}

.task-item input[type="checkbox"]:checked {
  background: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 5px var(--neon-green);
}

/* === DESKTOP 3D VISUAL EFFECT ===
   The layout is still full-width 100vw slides.
   3D transforms are ONLY cosmetic on individual slides — no layout math involved.
   ===================================== */
@media (min-width: 1024px) {

  /* Make the container a 3D stage */
  .swipe-container {
    perspective: 1600px;
  }

  /* Allow slides to live in 3D space */
  .swipe-track {
    transform-style: preserve-3d;
  }

  /* All slides: smooth 3D transitions */
  .instance-slide {
    transition:
      transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
      opacity 0.6s ease,
      filter 0.6s ease;
    transform-origin: center center;
    /* ~65% content width: padding uses vw (viewport), NOT % (which would be % of 400%-wide track parent!) */
    padding: 30px 17.5vw;
  }

  /* Active slide: pops forward, full brightness */
  .instance-slide.active-slide {
    transform: translateZ(60px) scale(1.02);
    opacity: 1;
  }

  /* Prev slide: tilted left, dim */
  .instance-slide.prev-slide {
    transform: translateZ(-80px) rotateY(25deg);
    opacity: 0.45;
    filter: brightness(0.55) saturate(0.35);
  }

  /* Next slide: tilted right, dim */
  .instance-slide.next-slide {
    transform: translateZ(-80px) rotateY(-25deg);
    opacity: 0.45;
    filter: brightness(0.55) saturate(0.35);
  }

  /* Active slide panels get a subtle glow */
  .instance-slide.active-slide .panel {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.07);
  }
}

/* ═══════════════════════════════════════════════
   BATTLE CALENDAR — interactive monthly grid
   ═══════════════════════════════════════════════ */

/* Month nav row */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-month-label {
  font-size: 10px;
  color: var(--neon-blue);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
  letter-spacing: 1px;
  text-align: center;
  flex: 1;
}

/* Weekday header row */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 6px;
  color: rgba(255, 255, 255, 0.35);
  padding: 4px 0;
  letter-spacing: 0.5px;
}

.cal-weekdays .weekend {
  color: rgba(255, 26, 85, 0.55);
}

/* 7-column grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

/* Individual day cell */
.cal-day {
  background: rgba(0, 10, 25, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 2px;
  padding: 5px 4px 4px;
  min-height: 42px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 229, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
  overflow: hidden;
}

.cal-day:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.3);
}

.cal-day.other-month {
  opacity: 0.3;
}

.cal-day.today {
  border-color: var(--neon-gold);
  background: rgba(255, 223, 0, 0.06);
  box-shadow: inset 0 0 8px rgba(255, 223, 0, 0.1);
}

.cal-day.today .cal-day-num {
  color: var(--neon-gold);
  text-shadow: 0 0 5px rgba(255, 223, 0, 0.7);
}

.cal-day.has-events {
  border-color: rgba(0, 229, 255, 0.25);
}

/* Day number */
.cal-day-num {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
  margin-bottom: 4px;
}

/* Event dots container */
.cal-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  width: 100%;
}

/* Single event dot */
.cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 4px currentColor;
  cursor: pointer;
  transition: transform 0.15s;
}

.cal-dot:hover {
  transform: scale(1.4);
}

/* ── Event Modal ─────────────────────────────── */
#modal-calendar-event .panel h3 {
  font-size: 9px;
  color: var(--neon-blue);
}

/* Color swatch row */
.cal-color-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cal-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.cal-color-swatch:hover {
  transform: scale(1.2);
}

.cal-color-swatch.selected {
  border-color: #fff;
  box-shadow: 0 0 8px #fff;
  transform: scale(1.15);
}

.gap-8 {
  gap: 8px;
}

/* Slightly smaller prev/next buttons on very narrow cells */
@media (max-width: 360px) {
  .cal-month-label {
    font-size: 8px;
  }

  .cal-day {
    min-height: 34px;
  }

  .cal-day-num {
    font-size: 6px;
  }
}

/* ── NEW MISSION TYPES ────────────────────────── */

.cal-day.party-type {
  background: rgba(255, 0, 50, 0.4) !important;
  border-color: #ff3366 !important;
  box-shadow: inset 0 0 15px rgba(255, 0, 50, 0.4), 0 0 10px rgba(255, 0, 50, 0.2);
}

.cal-day.party-type::before {
  content: '⚔️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  filter: drop-shadow(0 0 5px #000);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

.cal-day.meeting-type {
  background: rgba(0, 229, 255, 0.1) !important;
  border-color: rgba(0, 229, 255, 0.4) !important;
}

.cal-day.activity-type {
  background: rgba(255, 223, 0, 0.1) !important;
  border-color: rgba(255, 223, 0, 0.4) !important;
}

.cal-day-time {
  font-size: 6px;
  color: var(--neon-blue);
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 3px;
  border-radius: 2px;
  margin-top: 2px;
  z-index: 2;
  position: relative;
}

.cal-day-title {
  font-size: 5px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin-top: 1px;
  opacity: 0.8;
  z-index: 2;
  position: relative;
}

.mission-controls {
  position: relative;
  z-index: 50;
  margin-top: 30px;
  margin-bottom: 40px;
}


/* ── ROUND 3: BRIEFING COCKPIT (full width like other slides) ───────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

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



.rr-brief-title {
  letter-spacing: 2px;
}

.rr-mode-line {
  margin: 0;
  font-size: 8px;
  color: var(--neon-gold);
  letter-spacing: 1px;
}

.rr-command-strip {
  border-color: rgba(255, 223, 0, 0.35);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}



.rr-mode-sub {
  font-size: 6px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 2px;
  margin: 0 0 10px;
}

.rr-brief-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  align-items: start;
}

@media (max-width: 600px) {
  .rr-brief-grid {
    grid-template-columns: 1fr;
  }
}

.rr-life-counter {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.45);
  padding: 12px;
  min-height: 120px;
}

.rr-life-label {
  font-size: 7px;
  color: var(--neon-blue);
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.rr-life-digits {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
  margin-bottom: 12px;
  word-break: break-all;
}

.rr-readout-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 8px;
  color: rgba(255, 223, 0, 0.85);
  line-height: 1.5;
}

.rr-meta-line {
  display: block;
}

.rr-meta-brief {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 7px;
  line-height: 1.6;
}

.rr-map-frame {
  height: 160px;
}

.rr-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 8px;
}

@media (max-width: 520px) {
  .rr-data-grid {
    grid-template-columns: 1fr;
  }
}

.rr-data-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 44px;
}

.rr-data-k {
  font-size: 7px;
  color: rgba(0, 229, 255, 0.65);
  letter-spacing: 1px;
}

.rr-data-v {
  font-size: 8px;
  color: #fff;
  line-height: 1.4;
  word-break: break-word;
}

.rr-ticket-panel {
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed rgba(255, 223, 0, 0.25);
  background: rgba(255, 223, 0, 0.03);
}

.rr-ticket-head {
  font-size: 8px;
  color: var(--neon-gold);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.rr-ti.calendar-container {
  padding: 10px;
  background: rgba(0, 5, 15, 0.4);
  border: 1px solid rgba(0, 229, 255, 0.1);
  position: relative;
  /* Shift content to the right on PC to avoid sidebar overlap (which is 185px) */
  margin-left: 10px; 
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 5px;
  position: relative;
  z-index: 100; /* Higher priority */
}

.cal-header .arcade-btn {
  min-width: 80px;
  padding: 8px 15px;
  font-size: 9px;
}

.rr-ticket-note {
  font-size: 7px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
}

.rr-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rr-ticket-src {
  color: rgba(255, 255, 255, 0.45);
}

.rr-ticket-val {
  color: var(--neon-green);
  font-size: 9px;
}

.rr-drawer {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 15, 30, 0.85);
}

.rr-label {
  font-size: 8px !important;
  color: rgba(0, 229, 255, 0.65) !important;
}

.rr-tiny-hint {
  font-size: 7px;
  color: #555;
  margin: 8px 0;
  line-height: 1.4;
}

.rr-section-head {
  font-size: 8px;
  color: var(--neon-blue);
  letter-spacing: 3px;
  margin: 20px 0 6px;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.2);
  padding-bottom: 6px;
}

.rr-section-hint {
  font-size: 7px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
}

.rr-footer-hint {
  font-size: 5px;
  color: #444;
  margin-top: 16px;
  text-align: center;
}

/* (Old scroller removed in favor of vertical timeline scroller below) */

/* ── DJ SLOT LAYOUT (TIMELINE VIEW) ────────────────────────────── */
.timeline-stages-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 70vh; /* Allow vertical scroll within the board */
  background: rgba(0, 5, 10, 0.2);
  border: 1px solid rgba(0, 229, 255, 0.05);
  margin-top: 15px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.lineup-stage-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px;
}

.lineup-stage-card {
  flex: 1 1 300px;
  background: rgba(0, 10, 25, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.lineup-stage-header {
  border-bottom: 2px solid var(--neon-blue);
  padding-bottom: 0;
  margin-bottom: 15px;
  text-align: left;
}

.lineup-stage-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 0 10px var(--neon-blue);
  margin-bottom: 0;
}

.lineup-slot-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lineup-slot-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lineup-slot-time {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--hp-red);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.lineup-slot-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── LINEUP VIEW MODE ─────────────────────────────────────────── */
.lineup-view-mode .ac-input {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
  cursor: default;
}

.lineup-view-mode .lineup-slot-time {
  margin-bottom: 0;
}

.lineup-view-mode .lineup-slot-item {
  border-bottom: none;
  padding-bottom: 0;
}

.lineup-view-mode .btn-clear-dj {
  display: none !important;
}

.lineup-dj-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lineup-dj-name {
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.lineup-dj-name:hover {
  color: var(--neon-blue);
}

.lineup-b2b-divider {
  color: var(--neon-gold);
  font-size: 7px;
  font-weight: bold;
}

/* ── AUTOCOMPLETE SEARCH BAR ──────────────────────────────────── */
.ac-container {
  position: relative;
  width: 100%;
}

.ac-input {
  width: 100%;
  background: rgba(0, 15, 30, 0.9);
  border: 1px solid #ffd700;
  color: #fff;
  padding: 12px;
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
  border-radius: 2px;
}

.ac-input:hover, .ac-input:focus {
  background: rgba(0, 229, 255, 0.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  outline: none;
}

.ac-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 150px;
  overflow-y: auto;
  background: rgba(0, 10, 25, 0.95);
  border: 1px solid var(--neon-gold);
  z-index: 50;
  display: none;
}

.ac-item {
  padding: 8px;
  font-size: 8px;
  color: #fff;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 223, 0, 0.2);
}

.ac-item:hover {
  background: rgba(255, 223, 0, 0.2);
}

.ac-add-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  background: transparent;
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  font-size: 7px;
  padding: 4px;
  cursor: pointer;
  display: none;
}

.ac-add-btn:hover {
  background: rgba(0, 255, 119, 0.2);
}

/* Modals & Overlays */
.view[style*="display:flex"] {
    background: rgba(0, 5, 15, 0.96) !important;
    backdrop-filter: blur(10px);
}

.view[style*="display:flex"] .panel {
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 50px rgba(0, 163, 255, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

/* Unified Inputs */
input[type="datetime-local"] {
    color: var(--neon-blue);
    letter-spacing: 1px;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1) sepia(100%) saturate(10000%) hue-rotate(180deg);
    cursor: pointer;
}

/* Specific Modal Headers */
#modal-mission-edit h3 {
    text-shadow: 0 0 10px var(--neon-gold);
}

/* --- CUSTOM DATE TIME PICKER v2 --- */
.dtpicker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 5, 15, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.dtpicker-container {
    background: #000;
    border: 2px solid var(--neon-blue);
    border-radius: 4px;
    width: 95%;
    max-width: 700px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 163, 255, 0.4);
    color: #fff;
    font-family: 'Press Start 2P', cursive;
}

.dtpicker-header {
    background: var(--neon-blue);
    color: #000;
    padding: 20px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
}

.dtpicker-title {
    font-size: 10px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.dtpicker-subtitle {
    font-size: 8px;
    opacity: 0.9;
}

.dtpicker-body {
    display: flex;
    flex-direction: column;
    padding: 25px;
    gap: 30px;
}

@media (min-width: 650px) {
    .dtpicker-body {
        flex-direction: row;
    }
}

.dtpicker-calendar {
    flex: 1;
}

.dtpicker-time {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px dashed rgba(0, 163, 255, 0.2);
    padding-left: 25px;
}

@media (max-width: 649px) {
    .dtpicker-time {
        border-left: none;
        border-top: 1px dashed rgba(0, 163, 255, 0.2);
        padding-left: 0;
        padding-top: 25px;
    }
}

/* Range Sliders */
.time-slider-wrapper {
    margin-bottom: 10px;
}

.time-label-picker {
    font-size: 7px;
    color: var(--neon-gold);
    margin-bottom: 15px;
}

.time-slider-container {
    position: relative;
    height: 35px;
    user-select: none;
}

.time-axis-picker {
    position: absolute;
    bottom: 5px;
    width: 100%;
    height: 1px;
    background: var(--neon-green);
    opacity: 0.5;
}

.time-marker-picker {
    position: absolute;
    width: 1px;
    height: 4px;
    background: var(--neon-green);
    bottom: 5px;
}

.time-marker-picker.large {
    height: 8px;
    opacity: 1;
}

.time-cursor-picker {
    position: absolute;
    top: -10px;
    width: 32px;
    height: 32px;
    background: #FF6E40; /* Retro Orange */
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    z-index: 10;
}

.time-cursor-picker::after {
    content: attr(data-time);
    font-size: 6px;
    color: #fff;
    margin-bottom: 14px;
}

/* Time Display Boxes */
.time-display-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 163, 255, 0.05);
    padding: 15px;
    border: 1px solid rgba(0, 163, 255, 0.1);
}

.time-box {
    text-align: center;
}

.time-box-label {
    font-size: 6px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.time-box-value {
    font-size: 12px;
    color: var(--neon-blue);
    letter-spacing: 1px;
}

.time-arrow {
    color: var(--neon-red);
    font-size: 10px;
    opacity: 0.5;
}

/* Calendar Grid */
.cal-grid-picker {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day-picker {
    font-size: 8px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid transparent;
    color: #888;
}

.cal-day-picker:hover {
    background: rgba(0, 163, 255, 0.15);
    color: #fff;
}

.cal-day-picker.selected {
    background: #FF6E40;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 110, 64, 0.4);
}

.cal-day-picker.today {
    color: var(--neon-gold);
}

.cal-day-picker.other-month {
    opacity: 0.2;
}

.dtpicker-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px;
}

/* Global Type Toggle Styling */
.type-toggle {
    display: flex;
    gap: 5px;
    background: rgba(0, 15, 30, 0.8);
    padding: 5px;
    border-radius: 4px;
    border: 1px solid var(--neon-blue);
}

.type-toggle .arcade-btn.active {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 10px var(--neon-blue);
    opacity: 1 !important;
}

.type-toggle .arcade-btn.alt.active {
    background: var(--hp-red);
    color: #fff;
    box-shadow: 0 0 10px var(--hp-red);
    opacity: 1 !important;
}

/* --- ROUND 3: RELEASED SECTIONS (No panel wrapper visual) --- */
#budget-section.panel, 
#lineup-section.panel {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Ensure lineup title and hint don't hit the edges now that padding is gone */
#lineup-section .rr-section-head,
#lineup-section .rr-section-hint {
  padding-left: 12px;
  padding-right: 12px;
}

#lineup-section .timeline-stages-wrap {
  width: 100%;
}

/* --- ROUND 3: BUDGET SECTION --- */
#budget-section .budget-table {
  width: 100%;
  margin-top: 10px;
}

/* --- ROUND 3: BUDGET SECTION REFINED --- */
#budget-section .budget-table {
  width: 100%;
  margin-top: 15px;
  border: 1px solid rgba(0, 229, 255, 0.1);
  background: rgba(0, 10, 25, 0.4);
}

#budget-section .budget-grid {
  display: grid;
  width: 100%;
}

/* V2 Accordion rows: Item(3fr), Assumed(1fr), Delete(0.3fr) */
#budget-section .budget-grid.planning {
  grid-template-columns: 3fr 1.2fr 0.3fr;
}

#budget-section .budget-grid.tracking {
  grid-template-columns: 3fr 1.2fr 1.2fr 0.8fr 1.8fr 0.3fr;
}

#budget-section .budget-row {
  display: contents; /* Grid cells are direct children */
}

#budget-section .budget-cell {
  display: flex;
  align-items: center;
  min-height: 35px;
  border-bottom: 1px solid #222;
  border-right: 1px solid #222;
  transition: all 0.2s ease;
  overflow: hidden;
}

#budget-section .budget-cell.header {
  border-bottom: 2px solid var(--neon-gold);
  border-right: 1px solid rgba(255, 223, 0, 0.2);
  color: var(--neon-gold);
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 10px;
}

#budget-section .budget-cell.header:last-child,
#budget-section .budget-cell:last-child {
  border-right: none;
}

#budget-section .budget-grid:hover .budget-row:hover .budget-cell:not(.header) {
  background: rgba(0, 229, 255, 0.05);
}

#budget-section .budget-row.synced {
  background: rgba(0, 0, 0, 0.3);
  opacity: 0.7;
}

#budget-section .budget-input {
  background: transparent;
  border: 1px solid transparent;
  padding: 0;
  width: 100%;
  height: 100%;
  transition: all 0.2s;
  color: var(--text-main);
  display: flex;
  align-items: center;
}

#budget-section .budget-input:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.03);
}

#budget-section .budget-input:focus:not(:disabled) {
  border-bottom: 1px solid var(--neon-blue);
  background: rgba(0, 229, 255, 0.08);
  outline: none;
}

#budget-section .budget-input.text-right {
  text-align: right;
}

/* Category Dropdown Styling */
.budget-category-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: bold;
  height: 100%;
  width: 100%;
}

.budget-category-select:hover:not(:disabled) {
  border-color: var(--neon-blue);
  box-shadow: 0 0 5px var(--neon-blue);
}

#budget-section select.budget-input option {
  background: #0a0c10;
  color: #fff;
}

/* Remove button refinement */
#budget-section .btn-remove-budget-item {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border-radius: 2px;
  border: 1px solid transparent;
  color: rgba(255, 51, 102, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}

#budget-section .btn-remove-budget-item:hover {
  background: rgba(255, 51, 102, 0.2);
  color: var(--hp-red);
  border-color: var(--hp-red);
  text-shadow: 0 0 5px var(--hp-red);
}

/* Sync check styling */
.sync-check {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neon-green);
  font-size: 10px;
  background: rgba(0, 255, 119, 0.1);
  padding: 2px 4px;
  border-radius: 2px;
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 5px var(--neon-green);
}

#budget-section .type-toggle {
  border-color: var(--neon-gold) !important;
}

#budget-section .active {
    background: var(--neon-gold) !important;
    color: #000 !important;
    box-shadow: 0 0 10px var(--neon-gold) !important;
}

.flash-gold {
  animation: flashGold 1s ease-out;
}

@keyframes flashGold {
  0% { background: rgba(255, 223, 0, 0.3); }
  100% { background: transparent; }
}

/* ════════════════════════════════════════════════════════
   BUDGET V2 — INTELLIGENCE HUB
════════════════════════════════════════════════════════ */

/* --- BUDGET COCKPIT --- */
.budget-cockpit-panel {
  border: 1px solid #00e5ff;
  background: rgba(0, 10, 25, 0.85);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1), inset 0 0 30px rgba(0, 229, 255, 0.05);
  margin-bottom: 30px;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  backdrop-filter: blur(5px);
  width: 100%; /* Ensure full-width */
}

.budget-cockpit-panel::before {
  content: "INTELLIGENCE HUB // SYS:ON";
  display: block;
  background: rgba(0, 229, 255, 0.1);
  padding: 6px 12px;
  font-size: 8px;
  color: var(--neon-blue);
  letter-spacing: 3px;
  text-shadow: 0 0 8px var(--neon-blue);
  font-weight: bold;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
}

.cockpit-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.cockpit-cell {
  padding: 12px 15px;
  border-right: 1px solid rgba(0, 229, 255, 0.2);
}
.cockpit-cell:last-child {
  border-right: none;
}

.cockpit-label {
  font-size: 8px;
  color: rgba(0, 229, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: bold;
}

.cockpit-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  color: #fff;
  font-size: 16px;
  width: 100%;
  padding: 4px 0;
  font-family: 'Press Start 2P', cursive;
  outline: none;
  transition: all 0.2s;
}
.cockpit-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}
.cockpit-input:focus {
  border-bottom-color: var(--neon-blue);
  box-shadow: 0 1px 0 var(--neon-blue);
  color: var(--neon-blue);
}

.cockpit-middle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.cockpit-storm-panel {
  padding: 15px;
  border-right: 1px dashed rgba(0, 229, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cockpit-storm-control {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.storm-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 2px;
  background: #ff3366;
  outline: none;
  border-radius: 0;
  box-shadow: 0 0 5px rgba(255, 51, 102, 0.5);
}

.storm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3366;
  cursor: pointer;
  box-shadow: 0 0 5px #ff3366;
  border: 1px solid #fff;
}

.storm-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3366;
  cursor: pointer;
  border: 1px solid #fff;
  box-shadow: 0 0 5px #ff3366;
}

.cockpit-storm-readout {
  font-size: 20px;
  color: #ff3366;
  font-weight: bold;
  text-shadow: 0 0 15px #ff3366;
  min-width: 60px;
  text-align: right;
  font-family: 'Press Start 2P', monospace;
}

.cockpit-pie-panel {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cockpit-pie-panel.empty {
  justify-content: center;
  color: rgba(0, 229, 255, 0.4);
  font-size: 10px;
  letter-spacing: 2px;
  font-family: 'Press Start 2P', monospace;
}

.cockpit-pie-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  flex: 1;
}

.budget-pie-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #fff;
  letter-spacing: 1px;
}

.budget-pie-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.8);
}

.cockpit-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(0, 5, 15, 0.5);
}

.cockpit-metric {
  padding: 15px 12px;
  border-right: 1px solid rgba(0, 229, 255, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cockpit-metric:last-child {
  border-right: none;
}

.cockpit-value {
  font-size: 14px;
  color: #fff;
  letter-spacing: 1px;
  font-weight: bold;
  margin-top: 6px;
  font-family: 'Press Start 2P', monospace;
}

.cockpit-value.gold { color: var(--neon-gold); text-shadow: 0 0 8px var(--neon-gold); }
.cockpit-value.danger { color: #ff3366; text-shadow: 0 0 8px #ff3366; }
.cockpit-value.success { color: #00ff77; text-shadow: 0 0 8px #00ff77; }

/* Responsive adjustments for cockpit */
@media (max-width: 768px) {
  .cockpit-inputs, .cockpit-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .cockpit-middle {
    grid-template-columns: 1fr;
  }
  .cockpit-storm-panel {
    border-right: none;
    border-bottom: 1px dashed rgba(0, 229, 255, 0.2);
  }
}

/* --- Category Accordion Sections --- */
.budget-category-section {
  border: 2px solid #333;
  margin-bottom: 15px;
  background: #000000;
  transition: all 0.3s ease;
}



.budget-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  background: #000000;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  user-select: none;
}
.budget-category-section.expanded .budget-category-header {
  border-bottom-color: #00e5ff;
}

.budget-agenda {
  display: flex;
  gap: 15px;
  margin-left: auto;
  margin-right: 15px;
}

.budget-agenda-item {
  font-size: 5px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.budget-category-arrow {
  font-size: 10px;
  color: #00e5ff;
  transition: transform 0.2s;
  width: 12px;
  flex-shrink: 0;
  font-weight: bold;
}
.budget-category-section.expanded .budget-category-arrow {
  transform: rotate(90deg);
}

.budget-category-name {
  font-size: 8px;
  color: var(--neon-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex: 1;
}

.budget-category-badge {
  font-size: 8px;
  padding: 3px 8px;
  border-radius: 2px;
  background: #00e5ff;
  color: #000000;
  font-weight: bold;
  border: 2px solid #00e5ff;
}

.budget-category-total {
  font-size: 9px;
  color: var(--neon-gold);
  min-width: 90px;
  text-align: right;
}

.budget-category-body {
  display: none;
  flex-direction: column;
  border-top: 1px solid rgba(0, 229, 255, 0.1);
}
.budget-category-section.expanded .budget-category-body {
  display: flex;
}

.budget-cat-add-btn {
  margin: 8px;
  align-self: flex-start;
}

/* Adjust existing grid-based budget table inside accordion */
#budget-section .budget-table {
  border: none;
  margin-top: 0;
}

#budget-section .budget-grid {
  border-top: none;
}


/* Next Day Badge */
.next-day-badge {
    font-size: 7px;
    background: var(--neon-red);
    color: #fff;
    padding: 2px 4px;
    border-radius: 2px;
    margin-left: 5px;
    vertical-align: middle;
    text-shadow: none;
    box-shadow: 0 0 5px var(--neon-red);
}

.next-day-tag {
    font-size: 6px;
    color: var(--neon-gold);
    background: rgba(255, 223, 0, 0.1);
    border: 1px solid var(--neon-gold);
    padding: 1px 3px;
    margin-left: 4px;
    border-radius: 2px;
    vertical-align: middle;
    text-shadow: 0 0 3px var(--neon-gold);
}

.time-axis-label {
    pointer-events: none;
    user-select: none;
}

.lineup-time-range-trigger {
    transition: all 0.2s;
}

.lineup-time-range-trigger:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 229, 255, 0.1) !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.lineup-time-range-trigger:active {
    background: rgba(0, 229, 255, 0.2) !important;
    transform: scale(0.98);
}

.dtpicker-overlay .time-box-value {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Multi-device interaction fixes */
button, 
[role="button"],
.nav-item,
.dot,
.cal-day,
.cal-dot,
.fighter-badge .del,
.del-exp,
.cal-color-swatch,
.arcade-btn {
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .subtitle {
    font-size: 8px;
    margin-top: 15px;
    margin-bottom: 20px;
  }
  .login-panel {
    padding: 24px 16px;
  }
}

/* ════════════════════════════════════════════════════════
   REFINED MISSION BRIEFING (ROUND 3)
   ════════════════════════════════════════════════════════ */

.sw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

.sw-map-tabs .sw-tab {
  transition: all 0.2s;
  text-transform: uppercase;
  font-weight: bold;
}

.sw-map-tabs .sw-tab.active {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: inset 0 -2px 0 var(--neon-blue);
}

.sw-map-tabs .sw-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #fff !important;
}

.sw-stat-row span {
  font-family: 'Press Start 2P', cursive;
}

/* Scrollbar refinement for objectives */
#sw-party-tasks-list::-webkit-scrollbar {
  width: 4px;
}
#sw-party-tasks-list::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
}
#sw-party-tasks-list::-webkit-scrollbar-thumb {
  background: var(--neon-blue);
  border-radius: 2px;
}


/* ── NEW CALENDAR & MISSION MODAL STYLES ──────────────────────── */

#day-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-event-item {
    background: rgba(0, 15, 30, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border-radius: 4px;
}

.day-event-item:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.day-event-item .event-time-display {
    font-size: 7px;
    color: var(--neon-gold);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.day-event-item .event-title-display {
    font-size: 9px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

.day-event-item .event-type-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 6px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid;
    border-radius: 2px;
}

.type-party { border-color: var(--neon-red); color: var(--neon-red); }
.type-meeting { border-color: var(--neon-blue); color: var(--neon-blue); }
.type-activity { border-color: var(--neon-gold); color: var(--neon-gold); }
.type-social { border-color: #cc44ff; color: #cc44ff; }
.type-task { border-color: var(--neon-green); color: var(--neon-green); }

#modal-party-editor .rr-label {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 5px;
    display: block;
}

#modal-day-events .panel {
    background: rgba(4, 5, 12, 0.98);
}

.mission-log-item-clickable {
    cursor: pointer;
    transition: transform 0.1s;
}

.mission-log-item-clickable:active {
    transform: scale(0.98);
}

/* Mobile Adjustments */
@media screen and (max-width: 600px) {
  .large-timer {
    font-size: 20px !important;
    letter-spacing: 1px !important;
  }
  .cal-header .arcade-btn {
    min-width: 60px !important;
    padding: 6px 10px !important;
    font-size: 7px !important;
  }
  .cal-month-label {
    font-size: 8px !important;
  }
}
