/* =========================================================
   RKN - User Area Styles (Stage 5)
   File: /assets/css/user.css
   ========================================================= */

/* ===== NOTIF BUTTON ===== */
.rkn-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rkn-line);
  color: var(--rkn-ink-2);
}
.rkn-notif-btn:hover {
  background: #f1f5f9;
  color: var(--rkn-red);
}
.rkn-notif-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rkn-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== WALLET CARD ===== */
.rkn-wallet-card {
  background: linear-gradient(135deg, var(--rkn-red), var(--rkn-blue));
  color: #fff;
  border-radius: var(--rkn-radius);
  padding: 26px;
  box-shadow: var(--rkn-shadow);
  position: relative;
  overflow: hidden;
}
.rkn-wallet-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.rkn-wallet-card__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .85;
  font-weight: 700;
}
.rkn-wallet-card__balance {
  font-size: 30px;
  font-weight: 800;
  margin: 6px 0 14px;
  position: relative;
  z-index: 1;
}
.rkn-wallet-card__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.rkn-wallet-card__row > div {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 12px 14px;
}
.rkn-wallet-card__row small {
  display: block;
  font-size: 11.5px;
  opacity: .85;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.rkn-wallet-card__row strong { font-size: 15px; }

/* ===== NOTIF LIST ===== */
.rkn-notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rkn-notif-item {
  background: #fff;
  border: 1px solid var(--rkn-line);
  border-radius: var(--rkn-radius);
  padding: 16px;
  box-shadow: var(--rkn-shadow-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.rkn-notif-item.is-unread {
  border-left: 4px solid var(--rkn-red);
  background: #fff9f9;
}
.rkn-notif-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rkn-ink-2);
  flex-shrink: 0;
  font-weight: 800;
}
.rkn-notif-item.is-unread .rkn-notif-item__icon {
  background: var(--rkn-red);
  color: #fff;
}
.rkn-notif-item__body { flex: 1; min-width: 0; }
.rkn-notif-item__title { font-weight: 700; margin: 0 0 4px; font-size: 14.5px; }
.rkn-notif-item__msg { color: var(--rkn-ink-2); font-size: 13.5px; margin: 0 0 6px; }
.rkn-notif-item__meta { color: var(--rkn-muted); font-size: 12px; }

/* ===== PROFILE CARD ===== */
.rkn-profile-header {
  background: #fff;
  border: 1px solid var(--rkn-line);
  border-radius: var(--rkn-radius);
  padding: 22px;
  box-shadow: var(--rkn-shadow-sm);
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.rkn-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rkn-red), var(--rkn-blue));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.rkn-profile-header__info { flex: 1; min-width: 0; }
.rkn-profile-header__name { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.rkn-profile-header__meta { color: var(--rkn-muted); font-size: 13.5px; }

/* ===== STEP BADGE ===== */
.rkn-kyc-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.rkn-kyc-step {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--rkn-ink-2);
  font-weight: 600;
}
.rkn-kyc-step.is-done {
  background: #dcfce7;
  color: #14532d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .rkn-wallet-card__row { grid-template-columns: 1fr; }
  .rkn-wallet-card__balance { font-size: 26px; }
  .rkn-profile-avatar { width: 60px; height: 60px; font-size: 22px; }
}