/* ==============================
   🌕 CIB MiniApp Style
   ============================== */

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #fffbe0 0%, #fff8c9 100%);
  margin: 0;
  padding: 8px;
  text-align: center;
  color: #000;
}

/* Container */
.container {
  max-width: 390px;
  margin: 0 auto;
}

/* General Box */
.box {
  background: #fffef6;
  border: 2px solid #000;
  border-radius: 14px;
  padding: 6px;
  margin: 6px 0;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

/* ==============================
   HEADER
   ============================== */
.header-box {
  background: #ffcc00;
  padding: 8px 6px;
  border-radius: 14px;
}

.header-title {
  font-size: 13px;
  font-weight: bold;
  margin: 3px 0 5px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 70px; /* بزرگ‌تر از نسخه قبلی */
  height: 70px;
  border-radius: 50%;
  animation: spin 10s linear infinite;
  margin-right: 5px;
  margin-left: 5px;
}

.stats-inline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: center;
  font-size: 10px;
}

.stats-inline div {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

/* ==============================
   COMMIT BOX
   ============================== */
.commit-box label {
  font-size: 11px;
  display: block;
  margin-top: 4px;
}

input[type="range"] {
  width: 90%;
  accent-color: #00b359;
  margin: 3px 0;
}

/* ==============================
   REWARD BOX
   ============================== */
.reward-box {
  background: linear-gradient(90deg, #00ff99, #00cc66);
  color: #000;
  font-weight: bold;
  padding: 5px;
}

.reward-box p {
  font-size: 28px;
  font-weight: 900;
}

/* ==============================
   WALLET BOX
   ============================== */
.wallet-box {
  background: #fffde5;
}

.wallet-box .info-small {
  font-size: 9px;
  margin: 0 0 4px;
  line-height: 1.2;
}

.wallet-box input {
  width: 85%;
  padding: 5px;
  border: 1px solid #000;
  border-radius: 8px;
  margin-top: 3px;
}

.wallet-box button {
  margin: 3px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  border: 2px solid #000;
}

.wallet-btns {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
}

.btn-blue {
  background: #ff8800;
}

.btn-green {
  background: #00cc66;
}

/* ==============================
   SOCIAL BOX
   ============================== */
.social-box {
  background: #fffde5;
  padding: 8px;
}

.social-box h3 {
  font-size: 13px;
  margin-bottom: 4px;
}

.social-btn {
  width: 92%;
  padding: 7px;
  margin: 3px 0;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  cursor: pointer;
  transition: 0.2s;
}

.social-btn:hover {
  transform: scale(1.03);
}

.social-btn.x { background-color: #000; }
.social-btn.yt { background-color: #ff3333; }
.social-btn.tg { background-color: #3399ff; }

/* ==============================
   REFERRAL BOX
   ============================== */
.referral-box {
  background: #fffde5;
}

.referral-box h3 {
  font-size: 13px;
  margin-bottom: 4px;
}

.referral-box button {
  width: 90%;
  padding: 7px;
  border-radius: 10px;
  border: none;
  background: #00cc66;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
}

.ref-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.ref-stats p {
  font-size: 11px;
  margin: 0;
}

.ref-stats button {
  font-size: 9px;
  padding: 4px 7px;
  background: #ff8800;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  border: 2px solid #000;
}

/* ==============================
   FOOTER
   ============================== */
.footer-box {
  background: #ffcc00;
  border-radius: 10px;
  padding: 5px;
  border: 2px solid #000;
}

.footer-box p {
  margin: 2px 0;
}

.footer-box .small-text {
  font-size: 9px;
  color: #000;
}

/* ==============================
   ANIMATION
   ============================== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}