/* ================= GLOBAL ================= */
body {
  margin: 0;
  font-family: Arial;
  background: #0b132b;
  color: white;
}

/* ================= CONTAINER ================= */
.container {
  max-width: 900px;
  margin: auto;
}

/* ================= LOGIN ================= */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 15px;
  box-sizing: border-box;
}

.center-box {
  width: 100%;
  max-width: 340px;
  background: #1c2541;
  padding: 25px 20px;
  border-radius: 12px;
  text-align: center;
  box-sizing: border-box;
}

/* ================= INPUTS ================= */
input {
  width: 100%;
  display: block;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: none;
  outline: none;
  box-sizing: border-box;
  font-size: 14px;
}

/* ================= BUTTONS ================= */
button {
  width: auto;
  display: block;
  margin: 8px 0;
  padding: 12px;
  border-radius: 6px;
  border: none;
  background: #5bc0be;
  color: black;
  font-weight: bold;
  cursor: pointer;
  box-sizing: border-box;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1c2541;
  padding: 10px;
}

.navbar button {
  width: auto;
  padding: 5px 8px;
  font-size: 13px;
}

/* ================= MENU (FIXED V2) ================= */
.menu {
  display: none;
  position: absolute;
  top: 55px;
  left: 10px;

  width: 200px;
  background: #1c2541;

  padding: 8px;
  border-radius: 12px;

  flex-direction: column;
  gap: 4px;

  z-index: 9999;

  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  border: 1px solid rgba(91, 192, 190, 0.15);
}

.menu.active {
  display: flex;
}

.menu button {
  width: 100%;
  text-align: left;

  padding: 10px;
  border-radius: 8px;

  background: transparent;
  color: #fff;

  border: none;
  font-size: 13px;

  cursor: pointer;
  transition: 0.2s ease;
}

.menu button:hover {
  background: rgba(91, 192, 190, 0.12);
  color: #5bc0be;
  transform: translateX(2px);
}

/* ================= CARD ================= */
.card {
  background: #1c2541;
  padding: 12px;
  margin: 10px;
  border-radius: 10px;
}

/* ================= CHAT ================= */
#chatBox {
  height: 220px;
  overflow-y: auto;
  background: #0b132b;
  padding: 10px;
  border-radius: 8px;
}

.row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.row input {
  width: 70%;
  padding: 8px;
  border-radius: 5px;
  border: none;
  box-sizing: border-box;
}

.row button {
  width: auto;
  padding: 6px 10px;
  border-radius: 5px;
  background: #5bc0be;
  border: none;
  cursor: pointer;
}

/* ================= USERS ================= */
.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin: 6px 0;
  background: #0b132b;
  border-radius: 8px;
  font-size: 13px;
}

/* ================= DOTS ================= */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.online {
  background: #22c55e;
}

.offline {
  background: #555;
}

.badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: gold;
  color: black;
}

/* ================= EARN CARD ================= */
.earn-card {
  border: 1px solid #5bc0be;
  box-shadow: 0 0 8px rgba(91, 192, 190, 0.2);
}

.earn-card h4 {
  margin-bottom: 5px;
  color: #5bc0be;
}

.earn-card button {
  background: #22c55e;
  color: white;
}

.earn-card button:hover {
  background: #16a34a;
}

/* ================= AD + CHAT FIX ================= */
#chatBox {
  margin-bottom: 10px;
}

#adsBox {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(91, 192, 190, 0.15);
}

/* ================= GLOBAL BUTTON FIX ================= */
.card button {
  width: auto;
  max-width: 100%;
}

.row button {
  width: auto;
}