:root {
  --accent: #3B82F6;
  --bg: #07070f;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f0f0f8;
  --glass-blur: blur(24px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
}

.screen { display: none; height: 100vh; flex-direction: column; opacity: 0; transition: opacity 0.3s; }
.screen.active { display: flex; opacity: 1; }

/* Background Orbs */
.orb {
  position: fixed;
  width: 300px; height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
}
.orb-1 { background: var(--accent); top: -100px; left: -100px; }
.orb-2 { background: #8b5cf6; bottom: -100px; right: -100px; }

/* Auth */
.auth-container { margin: auto; text-align: center; }
.logo-text { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.logo-text span { color: var(--accent); }

/* Glass Components */
.glass-card {
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 20px;
}

.glass-btn {
  padding: 14px 24px;
  border-radius: 16px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 0.2s;
}
.glass-btn:active { transform: scale(0.95); }
.glass-btn.primary { background: var(--accent); color: white; }
.glass-btn.secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid var(--surface-border); }

.glass-input {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--surface-border);
  border-radius: 12px; padding: 14px; color: white; margin-bottom: 15px; font-size: 1rem;
}

/* Floating Island Nav */
.floating-island {
  position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%);
  width: 85%; max-width: 400px;
  background: rgba(20, 20, 30, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--surface-border);
  border-radius: 30px;
  height: 65px;
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 10px;
  z-index: 100;
}
.nav-item { background: none; border: none; font-size: 1.4rem; cursor: pointer; opacity: 0.5; transition: 0.3s; }
.nav-item.active { opacity: 1; transform: translateY(-5px); }
.action-btn { 
  background: var(--accent); width: 50px; height: 50px; border-radius: 50%; 
  display: flex; align-items: center; justify-content: center; opacity: 1;
}

/* Tasks */
.tasks-container { padding: 20px; overflow-y: auto; flex: 1; padding-bottom: 100px; }
.task-card { 
  margin-bottom: 12px; display: flex; align-items: center; gap: 15px; 
  padding: 15px; border-left: 5px solid transparent;
}
.task-card.green { border-left-color: #22c55e; }
.task-card.yellow { border-left-color: #eab308; }
.task-card.red { border-left-color: #ef4444; }
.task-card.blocked { opacity: 0.6; filter: grayscale(1); }

/* Modals */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); z-index: 200; display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal { width: 90%; max-width: 450px; position: relative; }
.close-modal { position: absolute; top: 15px; right: 15px; background: none; border: none; color: white; font-size: 1.2rem; }

/* Subtasks */
.subtask-item { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; background: rgba(255,255,255,0.05); padding: 5px 10px; border-radius: 8px; }
.subtask-item button { background: none; border: none; color: #ef4444; cursor: pointer; }
