body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
  color: #f0f0f0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #1b1b1b url('/uploads/kust3.png') center/cover no-repeat;
  background-blend-mode: multiply;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 20px;
}
.hidden {
  display: none !important;
}
.profile-header {
  display: flex;
  gap: 16px;
  align-items: center;
}
.avatar {
  width: 120px;
  height: 120px;
  background: #333;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background-size: cover;
  background-position: center;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.badge-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  background: #333;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid #555;
}
.avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin-top: 10px;
}
.avatar-profile {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}
.avatar-profile.placeholder {
  color: #aaa;
}
.crop-area {
  width: 320px;
  max-width: 100%;
  border: 1px dashed #444;
  margin-top: 10px;
  position: relative;
}
.crop-area img {
  max-width: 100%;
  display: block;
}
.main-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a,
header a {
  color: #fff;
  text-decoration: none;
}
.main-nav a.cta {
  background: #ff4c29;
  padding: 6px 10px;
  border-radius: 6px;
}
.badge-dot {
  display: inline-block;
  background: #ff4c29;
  color: #fff;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 12px;
  margin-left: 6px;
  vertical-align: middle;
}
main {
  padding: 40px 20px;
}
.hero {
  text-align: center;
  margin-bottom: 40px;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ff4c29;
  color: #fff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
.btn.outline {
  background: transparent;
  border: 1px solid #ff4c29;
  color: #ff4c29;
  margin-top: 10px;
}
.features {
  display: flex;
  gap: 20px;
}
.features div, .card {
  background: #1f1f1f;
  padding: 20px;
  border-radius: 8px;
}
.form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.form input,
.form select,
.form textarea {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: #f0f0f0;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 1px solid #ff4c29;
}
.list li {
  margin-bottom: 10px;
}
pre {
  background: #000;
  padding: 10px;
  border-radius: 4px;
  color: #0f0;
}
.status {
  background: #000;
  padding: 10px;
  border-radius: 4px;
  min-height: 48px;
  white-space: pre-wrap;
}
.status.success {
  color: #0f0;
}
.status.error {
  color: #ff9999;
}
.topic, .post, .dialog, .msg {
  background: #1f1f1f;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.dialog .preview {
  display: block;
  max-height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topic:hover, .dialog:hover {
  border: 1px solid #ff4c29;
  cursor: pointer;
}
.messages-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}
.chat-box {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 10px;
}
.msg.outgoing {
  border-left: 3px solid #ff4c29;
}
.msg.incoming {
  border-left: 3px solid #2aa1ff;
}
