body {
  background-color: #0c0d11;
  color: #ede8df;
  font-family: sans-serif;
  min-height: 100vh;
}

.brand-logo {
  font-size: 1.9rem;
  color: #e85c6a !important;
  text-decoration: none !important;
}

.brand-tagline {
  font-size: 0.65rem;
  color: #8a8494;
}

/* --- Navbar --- */
.navbar {
  background-color: #13141c;
  border-bottom: 1px solid #333;
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #444;
  object-fit: cover;
}

.nav-avatar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-username {
  font-size: 0.8rem;
  color: #8a8494;
}

/* --- Buttons --- */
.btn-primary {
  background-color: #e85c6a;
  border-color: #e85c6a;
  color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #e85c6a;
  border-color: #e85c6a;
  color: #fff;
}

.btn-primary:active { background-color: #d44a58; border-color: #d44a58; }

.btn-primary:disabled {
  background-color: #555;
  border-color: #555;
}

.btn-outline-secondary {
  border-color: #444;
  color: #8a8494;
  background: transparent;
}

.btn-outline-secondary:hover {
  background-color: #1c1d28;
  color: #ede8df;
}

.btn-outline-primary {
  border-color: #e85c6a;
  color: #e85c6a;
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: #e85c6a;
  color: #fff;
}

/* --- Forms --- */
.form-control {
  background-color: #1c1d28;
  border: 1px solid #444;
  color: #ede8df;
}

.form-control:focus {
  background-color: #1c1d28;
  border-color: #e85c6a;
  color: #ede8df;
  box-shadow: none;
}

.form-control::placeholder { color: #555; }

.form-label {
  font-size: 0.8rem;
  color: #8a8494;
}

.label-optional { color: #555; }

/* --- Login Page --- */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-brand .brand-logo {
  font-size: 3.8rem;
  display: block;
}

.login-card {
  background-color: #13141c;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 2rem;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #333;
  margin-bottom: 1.5rem;
}

.auth-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #555;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin-bottom: -1px;
}

.auth-tab.active { color: #e85c6a; border-bottom-color: #e85c6a; }
.auth-tab:hover:not(.active) { color: #8a8494; }

.auth-error {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #f07080;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

/* --- Howl Composer --- */
.howl-composer {
  background-color: #13141c;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1.25rem;
}

.composer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #444;
  object-fit: cover;
  flex-shrink: 0;
}

.howl-textarea {
  resize: none;
  font-size: 0.95rem;
  border: none !important;
  background-color: transparent !important;
  padding: 0 !important;
  min-height: 72px;
  box-shadow: none !important;
  color: #ede8df;
}

.char-count {
  font-size: 0.75rem;
  color: #555;
}

.char-count.warning { color: #e85c6a; }
.char-count.danger { color: #e05555; }

/* --- Howl Cards --- */
.howl-card {
  background-color: #13141c;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.howl-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.howl-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #444;
  object-fit: cover;
  flex-shrink: 0;
}

.howl-author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #ede8df;
  text-decoration: none;
  display: block;
}

.howl-author-name:hover { color: #e85c6a; }

.howl-author-username {
  font-size: 0.75rem;
  color: #555;
}

.howl-timestamp {
  font-size: 0.72rem;
  color: #555;
  margin-left: auto;
  white-space: nowrap;
}

.howl-text {
  font-size: 0.93rem;
  color: #ede8df;
  margin: 0;
  word-break: break-word;
}

/* --- Profile --- */
.profile-header {
  background-color: #13141c;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1.5rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #e85c6a;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-name {
  font-weight: 600;
  font-size: 1.2rem;
  color: #ede8df;
}

.profile-username {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 0.8rem;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #555;
  border-bottom: 1px solid #333;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

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

.following-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #1c1d28;
  border: 1px solid #333;
  border-radius: 100px;
  padding: 4px 12px 4px 5px;
  text-decoration: none;
}

.following-chip:hover { border-color: #e85c6a; }

.following-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.following-chip span {
  font-size: 0.75rem;
  color: #8a8494;
}

/* --- Utility --- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #555;
  font-size: 0.85rem;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #333;
  border-top-color: #e85c6a;
  border-radius: 50%;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 575px) {
  .profile-avatar { width: 64px; height: 64px; }
  .howl-timestamp { display: none; }
  .login-brand .brand-logo { font-size: 3rem; }
}
