/* ===== CARD LAYOUT ===== */
.card {
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.10);
  transition: 0.25s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.20);
}

/* ===== RANK ===== */
.rank {
  min-width: 22px;
  font-weight: 700;
  color: #999;
}

/* ===== IMAGE ===== */
.card-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== INFO ===== */
.card-info {
  flex: 1;              /* 🔥 FIX */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-title {
  font-weight: 700;
  font-size: 14px;
  margin: 0;
}

/* ===== BONUS ===== */
.bonus {
  font-size: 12px;
  color: #d20404;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.bonus::before {
  content: "";
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d20404'%3E%3Cpath d='M3 2.5a2.5 2.5 0 0 1 5 0 2.5 2.5 0 0 1 5 0v.006c0 .07 0 .27-.038.494H15a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1v7.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 14.5V7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h2.038A3 3 0 0 1 3 2.506zm1.068.5H7v-.5a1.5 1.5 0 1 0-3 0c0 .085.002.274.045.43zM9 3h2.932l.023-.07c.043-.156.045-.345.045-.43a1.5 1.5 0 0 0-3 0zM1 4v2h6V4zm8 0v2h6V4zm5 3H9v8h4.5a.5.5 0 0 0 .5-.5zm-7 8V7H2v7.5a.5.5 0 0 0 .5.5z'/%3E%3C/svg%3E");
}

/* ===== WITHDRAW ===== */
.withdraw {
  font-size: 12px;
  color: #028a09;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.withdraw::before {
  content: "";
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23028a09' viewBox='0 0 16 16'%3E%3Cpath d='M8 0l6.61 3H15a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5H15v7a.5.5 0 0 1 .485.38l.5 2a.498.498 0 0 1-.485.62H.5a.498.498 0 0 1-.485-.62l.5-2A.5.5 0 0 1 1 13V6H1a.5.5 0 0 1-.5-.5v-2A.5.5 0 0 1 1 3h.39L8 0zM2 6v7h1V6H2zm2 0v7h2.5V6H4zm3.5 0v7h1V6h-1zm2 0v7H12V6H9.5zM13 6v7h1V6h-1zM1 5v1h14V5H1zm-.39 9h14.78l-.25 1H.86l-.25-1z'/%3E%3C/svg%3E");
}

/* ===== BUTTON ===== */
.download-btn {
  margin-left: auto;   /* 🔥 MAIN FIX */
  text-decoration: none;
  background: linear-gradient(90deg,#f2a029,#2f8e12);
  border: none;
  border-radius: 8px;
  padding: 7px 12px;   /* thoda compact */
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.download-btn:hover {
  opacity: 0.9;
}

/* ICON */
.download-btn svg {
  width: 16px;
  height: 16px;
  fill: white;
}

/* FIX STATES */
.download-btn,
.download-btn:visited,
.download-btn:active,
.download-btn:focus {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg,#f2a029,#2f8e12);
}

.download-btn:active {
  transform: none;
}

.download-btn:focus {
  outline: none;
  box-shadow: none;
}
/* LIST RESET */
.app-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* LI RESET */
.app-list li {
  margin: 0;
  padding: 0;
}

/* OPTIONAL (best for spacing same as before) */
.app-list li .card {
  margin: 12px 0;
}