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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  padding: 20px;
}

/* Auth Section */
#auth-section {
  max-width: 300px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#auth-section form {
  padding: 0;
  background: transparent;
  border: none;
}

#auth-section input {
  width: 100%;
  padding: 12px 0;
  margin-bottom: 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #333;
  border-radius: 0;
  color: #fff;
  font-size: 14px;
}

#auth-section input:focus {
  outline: none;
  border-bottom-color: #fff;
}

#auth-section input::placeholder {
  color: #e2e1df;
  opacity: 0.35;
}

#auth-section button {
  width: auto;
  padding: 8px 24px;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
}

#auth-section button:hover {
  background: #9b9b9b;
  color: #000;
}

#auth-toggle {
  text-align: center;
  margin-top: 15px;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s;
}

#auth-toggle:hover {
  color: #fff;
  text-decoration: underline;
}

#auth-error {
  color: #f44;
  text-align: center;
  margin-top: 15px;
}

/* Main Section */
#main-section {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 15px 0;
  margin-bottom: 50px;
  border-bottom: 1px solid #1a1a1a;
}

.header-actions {
  display: flex;
  gap: 10px;
}

#current-user {
  font-weight: 400;
  color: #aaa;
  font-size: 13px;
}

#profile-btn,
#logout-btn {
  padding: 3px 10px;
  background: transparent;
  color: #666;
  border: 1px solid #333;
  border-radius: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 300;
  transition: all 0.2s;
}

#profile-btn:hover,
#logout-btn:hover {
  color: #aaa;
  border-color: #555;
}

/* Profile Section */
#profile-section {
  padding: 20px;
  margin-bottom: 30px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.profile-header h2 {
  font-size: 1.2em;
  font-weight: 400;
  color: #f5f5f5;
}

#close-profile {
  background: transparent;
  border: none;
  color: #666;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  transition: color 0.2s;
}

#close-profile:hover {
  color: #aaa;
}

.profile-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.85em;
  color: #888;
}

#profile-bio {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #1a1a1a;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 60px;
  margin-bottom: 15px;
}

#profile-bio:focus {
  outline: none;
  border-bottom-color: #333;
}

#save-bio {
  padding: 4px 16px;
  background: transparent;
  color: #777;
  border: 1px solid #333;
  font-size: 11px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s;
}

#save-bio:hover {
  color: #aaa;
  border-color: #555;
}

/* Password Change Section */
.password-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #1a1a1a;
}

.password-section h3 {
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 15px;
  color: #aaa;
}

.password-section input {
  width: 100%;
  padding: 10px 0;
  margin-bottom: 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #1a1a1a;
  color: #f5f5f5;
  font-size: 13px;
}

.password-section input:focus {
  outline: none;
  border-bottom-color: #333;
}

#change-password {
  padding: 4px 16px;
  background: transparent;
  color: #777;
  border: 1px solid #333;
  font-size: 11px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 5px;
}

#change-password:hover {
  color: #aaa;
  border-color: #555;
}

#password-message {
  margin-top: 10px;
  font-size: 12px;
}

#password-message.error {
  color: #ff4444;
}

#password-message.success {
  color: #44ff44;
}

/* Filters */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.filters select {
  padding: 5px 10px;
  background: #0a0a0a;
  color: #aaa;
  border: 1px solid #444;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.filters select:hover {
  color: #ddd;
  border-color: #666;
}

.filters select:focus {
  outline: none;
  border-color: #555;
}

#post-form {
  margin-bottom: 60px;
  padding: 0;
  background: transparent;
  border: none;
}

#post-form textarea {
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #1a1a1a;
  border-radius: 0;
  font-family: inherit;
  font-size: 13px;
  color: #f5f5f5;
  resize: none;
  min-height: 40px;
  max-height: 200px;
}

#post-form textarea:focus {
  outline: none;
  border-bottom-color: #333;
}

#post-form textarea::placeholder {
  color: #333;
  opacity: 0.6;
}

#post-form button {
  margin-top: 12px;
  padding: 4px 16px;
  background: transparent;
  color: #777;
  border: 1px solid #333;
  border-radius: 0;
  font-size: 11px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s;
}

#post-form button:hover {
  color: #aaa;
  border-color: #555;
}

.post-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

#privacy-select {
  padding: 5px 10px;
  background: #0a0a0a;
  color: #aaa;
  border: 1px solid #444;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

#privacy-select:hover {
  color: #ddd;
  border-color: #666;
}

#privacy-select:focus {
  outline: none;
  border-color: #555;
}

#posts-list {
  padding: 0;
}

.post {
  padding: 0 0 25px 0;
  margin-bottom: 25px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #0d0d0d;
}

.post:last-child {
  border-bottom: none;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.post-author {
  font-weight: 400;
  color: #aaa;
  font-size: 0.85em;
}

.post-time {
  color: #666;
  font-size: 0.75em;
}

.post-content {
  color: #fff;
  line-height: 1.6;
  margin-bottom: 15px;
  white-space: pre-wrap;
  font-size: 0.95em;
  font-weight: 400;
}

.post-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
  color: #888;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
}

.like-btn:hover {
  color: #ddd;
}

.like-btn.liked {
  color: #f44;
}

.delete-btn {
  padding: 3px 8px;
  background: transparent;
  color: #555;
  border: 1px solid #2a2a2a;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.7em;
  font-weight: 300;
  transition: all 0.2s;
}

.delete-btn:hover {
  color: #888;
  border-color: #444;
}

.follow-btn {
  padding: 4px 10px;
  background: transparent;
  color: #888;
  border: 1px solid #444;
  font-size: 0.75em;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.follow-btn:hover {
  color: #ddd;
  border-color: #666;
  background: #111;
}

.follow-btn.following {
  color: #aaa;
  border-color: #666;
  background: #0a0a0a;
}

.empty-state {
  text-align: center;
  color: #666;
  padding: 40px 20px;
  font-size: 1.1em;