/* KBC System Styles */
.kbc-wrap { max-width: 600px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* Header */
.kbc-header {
  background: linear-gradient(135deg, #1a0a00, #2d1500);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.kbc-header-left { display: flex; align-items: center; gap: 14px; }
.kbc-avatar {
  width: 48px; height: 48px;
  background: rgba(245,166,35,0.2);
  border: 2px solid #F5A623;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #F5A623;
}
.kbc-name { font-size: 16px; font-weight: 700; color: #F8F4E8; }
.kbc-level { font-size: 13px; color: #A89F8C; margin-top: 2px; }
.kbc-balance-box { text-align: right; }
.kbc-balance-num { font-size: 22px; font-weight: 800; color: #F5A623; }
.kbc-balance-rs { font-size: 13px; color: #A89F8C; margin-top: 2px; }

/* Stats */
.kbc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.kbc-stat {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.kbc-stat-num { font-size: 18px; font-weight: 700; color: #F5A623; }
.kbc-stat-lbl { font-size: 11px; color: #999; margin-top: 3px; }

/* Card */
.kbc-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.kbc-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

/* Tasks */
.kbc-task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  color: #333;
}
.kbc-task:last-child { border-bottom: none; }
.kbc-task.done { color: #999; text-decoration: line-through; }
.kbc-coins { font-weight: 700; color: #1D9E75; font-size: 13px; }

/* Progress */
.kbc-progress-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.kbc-progress-fill {
  height: 8px;
  background: linear-gradient(to right, #F5A623, #e8890a);
  border-radius: 99px;
  transition: width 0.5s ease;
}
.kbc-progress-text { font-size: 13px; color: #666; }
.kbc-badge-success {
  background: #E1F5EE;
  color: #1D9E75;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
}

/* Streak */
.kbc-streak-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}
.kbc-streak-row:last-child { border-bottom: none; }
.kbc-streak-row.claimed { color: #1D9E75; font-weight: 600; }

/* Alerts */
.kbc-alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.kbc-alert-success { background: #E1F5EE; color: #1D9E75; border: 1px solid rgba(29,158,117,0.2); }
.kbc-alert-warning { background: #FFF8E6; color: #B8730A; border: 1px solid rgba(245,166,35,0.3); }

/* Button */
.kbc-btn {
  background: linear-gradient(135deg, #F5A623, #e8890a);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.kbc-btn:hover { opacity: 0.9; }
.kbc-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Form fields */
.kbc-field { margin-bottom: 12px; }
.kbc-field label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 4px; }
.kbc-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.kbc-field input:focus { border-color: #F5A623; }

/* Rate table */
.kbc-rate-table { border-top: 1px solid #f0f0f0; padding-top: 12px; }
.kbc-rate-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  padding: 4px 0;
}

/* Transactions */
.kbc-txn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.kbc-txn:last-child { border-bottom: none; }
.kbc-txn-desc { font-size: 13px; color: #333; }
.kbc-txn-date { font-size: 11px; color: #999; margin-top: 2px; }
.kbc-txn-amt { font-weight: 700; font-size: 14px; }
.kbc-txn-amt.pos { color: #1D9E75; }
.kbc-txn-amt.neg { color: #e24b4a; }

.kbc-muted { font-size: 13px; color: #999; }

@media (max-width: 480px) {
  .kbc-stats { grid-template-columns: repeat(2, 1fr); }
  .kbc-header { flex-direction: column; text-align: center; }
  .kbc-balance-box { text-align: center; }
}
