/* =========================================
   VIEW 2: HALAMAN PROFIL PEMAIN & MONSTER
   ========================================= */
.profile-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0b161c 0%, #091318 50%, #060d11 100%);
  overflow-y: auto;
  overflow-x: hidden;
}

.profile-view::-webkit-scrollbar { width: 4px; }
.profile-view::-webkit-scrollbar-thumb { background: #2c424d; border-radius: 4px; }

.info-hero-banner {
  background: linear-gradient(135deg, #2d3e4e 0%, #526e85 50%, #7c9bb5 100%);
  position: relative;
  padding: 6px 12px 0;
  border-bottom: 1px solid #1e293b;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-mh-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  position: relative;
  z-index: 3;
}

.mh-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px #000;
}

.coin-m {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047, #b45309);
  border: 1px solid #fef08a;
  color: #451a03;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-h {
  width: 18px;
  height: 18px;
  border-radius: 3px 3px 9px 9px;
  background: linear-gradient(180deg, #e2e8f0, #64748b);
  border: 1px solid #fff;
  color: #0f172a;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 54px;
  position: relative;
  z-index: 2;
}

.info-big-text {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  padding-bottom: 6px;
}

.info-mascot-art {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  margin-right: 6px;
}

.info-tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(15, 23, 32, 0.92);
  border-top: 1px solid #475569;
  border-bottom: 1px solid #334155;
  position: relative;
  flex-shrink: 0;
}

.info-tab {
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.info-tab.active {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  color: #ffffff;
  box-shadow: inset 0 2px 0 #94a3b8;
}

.codex-badge {
  position: absolute;
  top: -8px;
  right: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid #fff;
}

.player-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: linear-gradient(180deg, #13222b 0%, #0d1820 100%);
  border-bottom: 1px solid #1e293b;
}

.profile-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.monster-avatar-frame {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: radial-gradient(circle, #38bdf8 10%, #1e3a8a 85%);
  border: 2px solid #f59e0b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.avatar-elem-tag {
  position: absolute;
  top: 2px;
  left: 2px;
  background: #9333ea;
  color: #fff;
  font-size: 9px;
  padding: 1px 3px;
  border-radius: 3px;
}

.profile-identity { line-height: 1.3; }

.id-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  color: #facc15;
}

.id-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  background: linear-gradient(180deg, #ef4444 50%, #ffffff 50%);
  border: 1px solid #94a3b8;
  border-radius: 2px;
}

.id-title-badge {
  display: inline-block;
  background: #0f172a;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin: 2px 0;
}

.id-guild-name {
  font-size: 13px;
  font-weight: 800;
  color: #4ade80;
}

.rank-emblem-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.elder-medal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fef08a, #b45309 70%, #78350f);
  border: 2.5px solid #fde047;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.65);
}

.elder-label {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

.sec-bar {
  background: linear-gradient(90deg, #273138 0%, #1a2228 100%);
  border-top: 1px solid #3c4a54;
  border-bottom: 1px solid #11161a;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sec-content {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.48;
}

.battle-stat-line {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.c-red { color: #f87171; }
.c-blue { color: #38bdf8; }
.c-green { color: #4ade80; }

.participation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 10px;
}

.btn-participating {
  background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 100%);
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.eff-title {
  font-weight: 800;
  color: #ffffff;
  margin-top: 10px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.eff-title:first-child { margin-top: 0; }
.eff-sq { width: 8px; height: 8px; background: #cbd5e1; display: inline-block; }
.eff-green { color: #4ade80; font-weight: 600; }
.eff-white { color: #e2e8f0; }
.eff-yellow { color: #facc15; font-weight: 700; }

.skill-row { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.skill-head { display: flex; justify-content: space-between; font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.skill-desc { font-size: 11px; color: #94a3b8; font-style: italic; }

.upgrade-btn {
  width: 100%;
  margin: 10px 0 4px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 100%);
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.stat-table-row { display: grid; grid-template-columns: 1.3fr 1fr; padding: 3px 0; font-size: 13px; font-weight: 700; }
.val-green { color: #4ade80; }
.val-orange { color: #fb923c; }

.inv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
  padding: 12px;
}

.inv-cell { display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; }
.inv-cell:active { transform: scale(0.95); }

.inv-slot {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.45), 0 2px 5px rgba(0,0,0,0.6);
  margin-bottom: 4px;
}

.slot-cream { background: radial-gradient(circle, #fefce8 35%, #d6cbb5 100%); border: 2.5px solid #a8a29e; }
.slot-dark { background: radial-gradient(circle, #1e293b 20%, #090d16 100%); border: 2.5px solid #94a3b8; }
.slot-purple { background: radial-gradient(circle, #7e22ce 15%, #2e1065 85%); border: 2.5px solid #e2e8f0; }
.slot-red-legend { background: radial-gradient(circle, #991b1b 20%, #450a0a 90%); border: 2.5px solid #f97316; }
.slot-ach-red { background: radial-gradient(circle, #dc2626 10%, #450a0a 90%); border: 2.5px solid #d6d3d1; }
.slot-ach-gold { background: radial-gradient(circle, #ca8a04 10%, #292524 90%); border: 2.5px solid #d6d3d1; }
.slot-ach-teal { background: radial-gradient(circle, #0d9488 10%, #042f2e 90%); border: 2.5px solid #d6d3d1; }

.ach-prog-bar { width: 54px; height: 4px; background: #1e293b; border-radius: 2px; margin-bottom: 3px; overflow: hidden; }
.ach-prog-fill { height: 100%; background: #facc15; }
.inv-name { font-size: 10.5px; font-weight: 700; color: #f1f5f9; line-height: 1.15; }
.inv-qty { font-size: 10.5px; font-weight: 800; color: #ffffff; margin-top: 1px; }

/* =========================================
   STYLE TAB MONSTER (LEAD & OWNED MONSTERS)
   ========================================= */
.lead-monster-container {
  padding: 10px 12px;
}

.lead-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 25, 34, 0.85);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px;
}

.monster-card-slot {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.7);
}

/* Bingkai 5 Tier Monster */
.tier-border-Common {
  background: radial-gradient(circle, #475569 20%, #1e293b 90%);
  border: 2.5px solid #94a3b8;
}
.tier-border-Uncommon {
  background: radial-gradient(circle, #15803d 20%, #052e16 90%);
  border: 2.5px solid #4ade80;
}
.tier-border-Rare {
  background: radial-gradient(circle, #1d4ed8 20%, #172554 90%);
  border: 2.5px solid #38bdf8;
}
.tier-border-Epic {
  background: radial-gradient(circle, #7e22ce 20%, #3b0764 90%);
  border: 2.5px solid #c084fc;
}
.tier-border-Legend {
  background: radial-gradient(circle, #b45309 20%, #451a03 90%);
  border: 2.5px solid #facc15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}

/* Warna Teks 5 Tier */
.tier-text-Common { color: #cbd5e1; }
.tier-text-Uncommon { color: #4ade80; }
.tier-text-Rare { color: #38bdf8; }
.tier-text-Epic { color: #c084fc; }
.tier-text-Legend { color: #facc15; }

.card-elem-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255,255,255,0.3);
}

.card-lead-star {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
}

.lead-details {
  line-height: 1.3;
}

.lead-name {
  font-size: 14px;
  font-weight: 800;
  color: #facc15;
}

.lead-tier-line {
  font-size: 12.5px;
  font-weight: 800;
}

.lead-eff-title {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lead-eff-desc {
  font-size: 11.5px;
  font-weight: 700;
  color: #4ade80;
}

/* Tombol Owned Monsters per Elemen (Persis Gambar Referensi) */
.owned-btn-wrap {
  padding: 16px 24px;
  display: flex;
  justify-content: center;
}

.btn-owned-monsters {
  width: 190px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: linear-gradient(180deg, #9ca3af 0%, #6b7280 50%, #4b5563 100%);
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.1s;
}

.btn-owned-monsters:active {
  transform: scale(0.96);
}

.empty-elem-msg {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 11.5px;
  color: #94a3b8;
  padding: 10px 0;
}
